Jump to content
Software FX Community

Reset Palette Colors


Recommended Posts


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

Link to comment
Share on other sites

Where are you setting the Pallete property?

I created a simple sample. Manually I set the Pallete property to Nature.Sky (in the Properties window) and then changed it in code as bellow:

private void Form1_Load(object sender, EventArgs e)


chart1.Data.Series = 1;

chart1.Data.Points = 3;

chart1.Gallery = Gallery.Pie;


private void button1_Click(object sender, EventArgs e)


chart1.Palette = "Default";


It works just fine! Please let me know if works for you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...