How can I change the color of a series, If we have explictly given color for each bar.
I had used the following code, If didn’t have any effect on the chart
Added the bar to chart:
Code: Select all
Chart1.AddSeries(TBarSeries);
Chart1.Series[0].Add(-50,'Test1',clRed);
Chart1.Series[0].Add(-25,'Test2',clRed);
Chart1.Series[0].Add(0,'Test3',clgreen);
Chart1.Series[0].Add(25,'Test4',clgreen);
Chart1.Series[0].Add(50,'Test4',clgreen);
Code: Select all
Chart1.Series[0].Color := clblue;
Kindly advice.
Thanks,
Geetha