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

Message ListMessage List     Post MessagePost Message

  Shape Border Color
Posted by Thom on May-26-2012 01:53
What is the easiest way to set the border color for each shape to match the associated
line?

For instance, I need a red outline circle.

  Re: Shape Border Color
Posted by Peter Kwan on May-26-2012 03:28
Hi Thom,

As you mentioned "shape that matches the associated line", I assume you are plotting a line chart with data point symbols. In this case, you can configure the symbol fill color to be Chart.Transparent (or any other color you prefer to use), and the symbol edge color to be Chart.SameAsMainColor.

For example:

ChartDirector.DataSet ds = layer.addDataSet(data0, 0xcf4040, "Peak");
ds.setDataSymbol(Chart.CircleSymbol, 11, Chart.Transparent, Chart.SameAsMainColor);

Hope this can help.

Regards
Peter Kwan