Pie chart default colours so similar!

Thread is closed for posting
4 posts, 1 answers
  1. Bex
    Bex avatar
    53 posts
    Member since:
    Jul 2011

    Posted 22 May 2012 Link to this post

    I have just started using this pie chart and I have 4 series and all the slices are appearing correctly but 2 are shades of blue and 2 are shades of green. My chart has a legend but the greens and blues are so similar it's difficult to tell which is which!
    I have checked out the samples and it's the same there.
    Surely there is some mistake? Is there some setting to make it change the default colours, rather than having to manually set the colour of each series?

    My chart is as follows:
    <telerik:radchart id="RadChart1" runat="server" defaulttype="Pie" skin="Vista" charttitle-textblock-text="" OnItemDataBound="RadChart1_ItemDataBound">
     <telerik:ChartSeries Appearance-LegendDisplayMode="ItemLabels" Type="Pie" DataYColumn="Meters" />

    and I am binding like this:

    RadChart1.DataSource =myDS;

  2. Richard
    Richard avatar
    7 posts
    Member since:
    Dec 2011

    Posted 24 May 2012 Link to this post

  3. DevCraft R3 2016 release webinar banner
  4. Answer
    jumpstart avatar
    479 posts
    Member since:
    Nov 2011

    Posted 24 May 2012 Link to this post


    The default palette of the RadChart is defined as part of the skin that you assign to the RadChart.

    Probably the best approach for providing a more varied palette is by creating a Custom Palette, either declaratively, as demonstrated in this forum thread: Pie Chart Items , or alternatively, by defining this Custom Palette and assigning it using code behind:

    private void SetSeriesColors()
        Color[] seriesColors = new[]
        Palette seriesPalette = new Palette("seriesPalette", seriesColors, true);
        RadChart1.SeriesPalette = "seriesPalette";

    But, in order to have the Custom Palette colors override the default ones, you will need to set RadChart.SkinsOverrideStyles = false;

    Hope this helps!
  5. Bex
    Bex avatar
    53 posts
    Member since:
    Jul 2011

    Posted 25 May 2012 Link to this post

    Thank you! That works fantastically!
Back to Top