I have an app that uses the MS Chart control. How can I programmatically change the color of the series?
Thanks for any help
JP
Printable View
I have an app that uses the MS Chart control. How can I programmatically change the color of the series?
Thanks for any help
JP
This code will change the series color. Replace 1 with what ever row you are changing. Keep the -1. This example creates a blue fill color.
MSChart.Plot.SeriesCollection(1).DataPoints(-1). Brush.FillColor.Red = 152
MSChart.Plot.SeriesCollection(1).DataPoints(-1). Brush.FillColor.Green = 173
MSChart.Plot.SeriesCollection(1).DataPoints(-1). Brush.FillColor.Blue = 199
DKCK