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

Message ListMessage List     Post MessagePost Message

  addStepLineLayer - Dashed Lines
Posted by John Nelson on Mar-23-2021 21:30
Is there a way to have a addStepLineLayer with dashed lines - I know we can have dashed lines in using the multiLineChart example...

layer.addDataSet(data2, c.dashLineColor(0x3333ff, Chart.DashLine), "Server #3");

But - I'd like to have that similar feature with step lines.

  Re: addStepLineLayer - Dashed Lines
Posted by Peter Kwan on Mar-24-2021 00:06
Hi John,

Yes. To change any line into a dash line, simply replace the ARGB color with a dash line color.

For example, in one of our sample code, there is the following line:

StepLineLayer layer0 = c.addStepLineLayer(dataY0, 0xff0000, "Country AAA");

You can change the line color 0xff0000 to c.dashLineColor(0xff0000, Chart.DashLine), like:

StepLineLayer layer0 = c.addStepLineLayer(dataY0, c.dashLineColor(0xff0000, Chart.DashLine), "Country AAA");

Hope this can help.

Regards
Peter Kwan