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

unable to remove gradient

4 Answers 119 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
ketan reddy
Top achievements
Rank 1
ketan reddy asked on 16 Feb 2009, 07:10 PM
a quick question..

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

Sort by
0
Ves
Telerik team
answered on 17 Feb 2009, 06:59 AM
Hello ketan,

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.
0
ketan reddy
Top achievements
Rank 1
answered on 17 Feb 2009, 02:37 PM
I created a sample chart (this time from designer) and again the same results -- there is a whitish tinge to the color.  Here is the code:

<

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>

 

0
Accepted
Ves
Telerik team
answered on 20 Feb 2009, 07:10 AM
Hello ketan,

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.
0
ketan reddy
Top achievements
Rank 1
answered on 23 Feb 2009, 02:41 PM
Thank you. That solved the problem.

-Ketan Reddy
Tags
Chart (Obsolete)
Asked by
ketan reddy
Top achievements
Rank 1
Answers by
Ves
Telerik team
ketan reddy
Top achievements
Rank 1
Share this question
or