I've tried using the following code to change the colour of one of the series areas and it doesn't work.
ChartSeriesType
chartType = aPercentage ? ChartSeriesType.StackedArea100 : ChartSeriesType.Area;
ChartSeries
freeSeries = new ChartSeries("Series 1", chartType);
freeSeries.Appearance.LegendDisplayMode =
ChartSeriesLegendDisplayMode.SeriesName;
freeSeries.Appearance.FillStyle.MainColor =
Color.Green;
I've also tried doing the following, and this doesn't work either:
ChartSeriesItem
free = new ChartSeriesItem(cd.FreeEntry);
free.Label.Visible =
false;
free.Appearance.FillStyle.MainColor =
Color.Green;
freeSeries.AddItem(free);
Please could someone point me in the right direction.
Many thanks, Craig.