I have been trying to get the color of my Pie chart slice to be a solid single blue color. But then it has this whitish tinge to it. It starts with a solid blue but halfway through the slice, it becomes whitish blue. I tried the following setting:
chartSerie.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;
What could be teh problem?
-Ketan Reddy
4 Answers, 1 is accepted
This is the correct property to go with. Can you share more details about your implementation, please?
Greetings,
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.
<
body>
<form id="form1" runat="server">
<div>
<telerik:RadChart ID="RadChart1" runat='server' DefaultType="Pie"
SeriesPalette="Colorful">
<Series>
<cc1:ChartSeries Name="Series 1" Type="Pie">
<Appearance>
<FillStyle FillType="Solid">
</FillStyle>
</Appearance>
<Items>
<cc1:ChartSeriesItem Name="Item 1" YValue="20">
</cc1:ChartSeriesItem>
<cc1:ChartSeriesItem Name="Item 2" YValue="43">
</cc1:ChartSeriesItem>
<cc1:ChartSeriesItem Name="Item 3" YValue="76">
</cc1:ChartSeriesItem>
</Items>
</cc1:ChartSeries>
</Series>
<PlotArea>
<Appearance SeriesPalette="Colorful">
</Appearance>
</PlotArea>
<Appearance>
<FillStyle FillType="solid">
</FillStyle>
</Appearance>
</telerik:RadChart>
</div>
</form>
</
body>
The reason for this is in the SeriesPalette setting. It represents a set of colors and this palette is configured with gradients. In order to override this you need to set individual appearance settings to each chart item. You can find a small example attached.
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.
-Ketan Reddy