Colors inside pie chart

Thread is closed for posting
2 posts, 0 answers
  1. vikram
    vikram avatar
    11 posts
    Member since:
    Oct 2008

    Posted 12 Mar 2009 Link to this post

        I am using pie chart for report. How can I change the color of the strips inside circle of the pie chart? Can we change the custome color as per the label ?


  2. Ves
    Ves avatar
    2926 posts

    Posted 16 Mar 2009 Link to this post

    Hello vikram,

    There are two ways change the appearance of each slice using the pie chart series.

    First one is to set CustomPalletes property and  then point the name of the newly created Palette to the 'SeriesPallete' property.

            <telerik:RadChart ID="RadChart1" runat="server" SeriesPalette="Palette1"
                    <telerik:Palette Name="Palette1"
                            <telerik:PaletteItem MainColor="Green" SecondColor="Lime"
                            <telerik:PaletteItem MainColor="Red" SecondColor="Pink"

    Second way to achieve this is to set the MainColor and (optionally SecondColor and FillStyle) properties for each slice:

                    <telerik:ChartSeries Type="Pie"
                            <telerik:ChartSeriesItem Name="Item 1" YValue="100"
                                    <FillStyle FillType="Gradient" MainColor="Green" SecondColor="Lime"
                            <telerik:ChartSeriesItem Name="Item 2" YValue="200"
                                    <FillStyle FillType="Gradient" MainColor="Red" SecondColor="Pink"

    Hope this helps.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top