ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  XY Guided line
Posted by HANSOO KIM on Aug-20-2023 00:57
Attachments:

What it is called this guided X,Y lines ?

How to show/hide and change the line type to dot dashed or straight line  ?
Many Thanks

BR
HANSOO KIM
x_y_guided_line.png

  Re: XY Guided line
Posted by Peter Kwan on Aug-20-2023 13:13
Hi HANSOO KIM,

The guided X,Y lines are called "grid lines" in ChartDirector documentation.The grid line colors can be set in XYChart.setPlotArea. You can draw them as dashed lines by using a "dash line color" as the line color.

For example:

c->setPlotArea(50, 55, 400, 400, Chart::Transparent, -1, -1,
     c->dashLineColor(0xaa000000, Chart::DotLine),    // horizontal grid line as dash line
     0xcccccc);   // vertical grid line as solid line

The following is an example that uses dash lines for both the x and y grid lines.

https://www.advsofteng.com/doc/cdcpp.htm#datatable.htm

See:

https://www.advsofteng.com/doc/cdcpp.htm#XYChart.setPlotArea.htm
https://www.advsofteng.com/doc/cdcpp.htm#BaseChart.dashLineColor.htm

Best Regards
Peter Kwan

  Re: XY Guided line
Posted by HANSOO KIM on Aug-20-2023 17:32

Thanks Peter, It all happened by multi Layers.

BR
HANSOO KIM