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

Edit colors in out-of-box series palette

1 Answer 140 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bonnie
Top achievements
Rank 1
Bonnie asked on 07 Jun 2011, 09:48 PM
I want a series palette with the gradient look but with 8 distinct colors.  The SeriesPalette colors that ship either have too few colors (so that after the 4th or 5th value the colors repeat) - an example is the Default series.  Or - Excel Classic for example - there are enough colors, but those colors are flat (not the gradient look).

Rather than re-invent the by creating gradient custom palettes - is it possible to get access to the code for the out-of-the-box SeriesPalette's and just alter those? (add new colors, for example).

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 08 Jun 2011, 12:30 PM
Hello Bonnie,

I am afraid the built-in series palettes cannot be extended with additional brushes. You will need to create a custom palette. Please, find below one of the built-in palettes with complex gradients, that you can extend and use as per your requirements:

<Series>
<ChartSeries>
<Appearance>
<FillStyle FillType="ComplexGradient">
<FillSettings>
<ComplexGradient>
 <GradientElement Color="213, 247, 255"/>
 <GradientElement Color="193, 239, 252" Position="0.5"/>
 <GradientElement Color="157, 217, 238" Position="1"/>
 </ComplexGradient>
 </FillSettings>
 </FillStyle>
 </Appearance>
 </ChartSeries>
<ChartSeries>
<Appearance>
<FillStyle FillType="ComplexGradient">
<FillSettings>
<ComplexGradient>
 <GradientElement Color="218, 254, 122"/>
 <GradientElement Color="198, 244, 80" Position="0.5"/>
 <GradientElement Color="153, 205, 46" Position="1"/>
 </ComplexGradient>
 </FillSettings>
 </FillStyle>
 <Border Color="111, 174, 12"/>
 </Appearance>
 </ChartSeries>
<ChartSeries>
<Appearance>
<FillStyle FillType="ComplexGradient">
<FillSettings>
<ComplexGradient>
 <GradientElement Color="136, 221, 246"/>
 <GradientElement Color="97, 203, 234" Position="0.5"/>
 <GradientElement Color="59, 161, 197" Position="1"/>
 </ComplexGradient>
 </FillSettings>
 </FillStyle>
 <Border Color="67, 181, 229"/>
 </Appearance>
 </ChartSeries>
<ChartSeries>
<Appearance>
<FillStyle FillType="ComplexGradient">
<FillSettings>
<ComplexGradient>
 <GradientElement Color="163, 222, 78"/>
 <GradientElement Color="132, 207, 27" Position="0.5"/>
 <GradientElement Color="102, 181, 3" Position="1"/>
 </ComplexGradient>
 </FillSettings>
 </FillStyle>
 <Border Color="94, 160, 0"/>
 </Appearance>
 </ChartSeries>
<ChartSeries>
<Appearance>
<FillStyle FillType="ComplexGradient">
<FillSettings>
<ComplexGradient>
 <GradientElement Color="79, 152, 198"/>
 <GradientElement Color="34, 123, 182" Position="0.5"/>
 <GradientElement Color="4, 85, 156" Position="1"/>
 </ComplexGradient>
 </FillSettings>
 </FillStyle>
 <Border Color="39, 103, 210"/>
 </Appearance>
 </ChartSeries>
<ChartSeries>
<Appearance>
<FillStyle FillType="ComplexGradient">
<FillSettings>
<ComplexGradient>
 <GradientElement Color="86, 153, 78"/>
 <GradientElement Color="43, 126, 33" Position="0.5"/>
 <GradientElement Color="18, 96, 3" Position="1"/>
 </ComplexGradient>
 </FillSettings>
 </FillStyle>
 <Border Color="46, 93, 0"/>
 </Appearance>
 </ChartSeries>
 </Series>


Kind regards,
Ves
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Bonnie
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or