Thanks, I understand it.
First, I have to update the standard color palettes with desired colors.
oWB.ChangePalette(System.Drawing.Color.Orange, 31)
oWB.ChangePalette(System.Drawing.Color.OrangeRed, 32)
oWB.ChangePalette(System.Drawing.Color.Blue, 33)
oWB.ChangePalette(System.Drawing.Color.YellowGreen, 34)
oWB.ChangePalette(System.Drawing.Color.Pink, 35)
oWB.ChangePalette(System.Drawing.Color.LimeGreen, 36)
oWB.ChangePalette(System.Drawing.Color.Gray, 37)
oWB.ChangePalette(System.Drawing.Color.Indigo, 38)
oWB.ChangePalette(System.Drawing.Color.Yellow, 39)
oWB.ChangePalette(System.Drawing.Color.Green, 40)
My question was how I can change default palette, so I do not have to set new colors for different objects.
For different objects, I have to set colors differently:
ColumnStacked:
chart.NSeries(0).Area.ForegroundColor = Color.Orange
chart.NSeries(1).Area.ForegroundColor = Color.OrangeRed
chart.NSeries(2).Area.ForegroundColor = Color. Blue
……
Every other ColumnStacked chart could have different number of NSeries.
Pie:
chart.NSeries(0).Points(0).Area.ForegroundColor = Color.Orange
chart.NSeries(0).Points(1).Area.ForegroundColor = Color.OrangeRed
chart.NSeries(0).Points(2).Area.ForegroundColor = Color.Blue
chart.NSeries(0).Points(3).Area.ForegroundColor = Color.YellowGreen
chart.NSeries(0).Points(4).Area.ForegroundColor = Color.Pink
chart.NSeries(0).Points(5).Area.ForegroundColor = Color.LimeGreen
chart.NSeries(0).Points(6).Area.ForegroundColor = Color.Gray
……
Every other pie chart could have different number of points.
Currently default palette (violet, maroon, light yellow, light blue ….) is the same for different objects and I don’t have to set it.
How I can change default palette, so I don’t have to set desired colors and application will take colors from new desired default list?