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

Message ListMessage List     Post MessagePost Message

  Filter out color from being used in plotting line series graphs
Posted by Ariffin Hasan on Jul-26-2011 03:20
Hi

I am using your chart to display graphs to a client in .Net. Currently I am using the colors
automatically set by Chart Director when plotting.

However, the client does not want a red color for plotting. Just for 1 color, I do not want to
convert to manually specifying colors for the graph as we cannot determine the maximum no
of lines that could be plotted dynamically.

My question will be is there anyway I can just say do not plot using the red color and Chart
Director will auto select the colors when plotting but no choose red? Please advise.

Regards
Ariffin Hasan

  Re: Filter out color from being used in plotting line series graphs
Posted by Peter Kwan on Jul-26-2011 23:54
Hi Ariffin,

If you are plotting an XYChart, before you add any real layer or data set, please add an empty layer or data set (with the data being empty arrays) using the automatic color (using -1 as the color). For example, an empty line layer will work. This will "consume" the first color (the red color). So for your real data, the auto-color will start from the second color (the green color) onwards.

If you are plotting a pie chart, please add a "NoValue" item as the first item. It will consume the first color (the red color).

Hope this can help.

Regards
Peter Kwan

  Re: Filter out color from being used in plotting line series graphs
Posted by Ariffin Hasan on Aug-05-2011 16:18
Thanks it worked like a charm ;)