Report Reset Palette Colors in Windows Forms Posted June 4, 2009 Hi, I want to reset all colors in a chart in order to get back the original colors from the palette. Currently, I have tried to set the empty color to all the series and then set the palette I want to load: foreach(SeriesAttributes serie in chart1.Series) { serie.Color = Color.Empty; } chart1.Palette = "Default"; But I don't get the original colors from the "Default" palette. Is there a way to do this? Thanks in advance. Best Regards, Pedro Rosas
Reset Palette Colors
in Windows Forms
Posted
Hi,
I want to reset all colors in a chart in order to get back the original colors from the palette.
Currently, I have tried to set the empty color to all the series and then set the palette I want to load:
foreach(SeriesAttributes serie in chart1.Series)
{
serie.Color = Color.Empty;
}
chart1.Palette = "Default";
But I don't get the original colors from the "Default" palette.
Is there a way to do this?
Thanks in advance.
Best Regards,
Pedro Rosas