This is a migrated thread and some comments may be shown as answers.

Colors inside pie chart

1 Answer 143 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
vikram
Top achievements
Rank 1
vikram asked on 12 Mar 2009, 01:45 PM
Hi,
    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 ?

Thanks
Vikram

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 16 Mar 2009, 02:50 PM
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 

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

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

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

Hope this helps.

Kind regards,
Ves
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.
Tags
Chart (Obsolete)
Asked by
vikram
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or