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

Change colorsof a skin

1 Answer 18 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Ludovic
Top achievements
Rank 1
Ludovic asked on 17 Feb 2012, 05:49 PM
Hello,
I'm trying to change the colors (palette) of the skin "telerik".
Palette myPalette = new Palette("myPalette", ColorPaletteGenerator.Generate(20, 230).ToArray(), true);
myChart.SkinsOverrideStyles = false;
myChart.CustomPalettes.Add(myPalette);
myChart.SeriesPalette = myPalette.name;
But nothing seems to work.
Any Ideas ?

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 21 Feb 2012, 10:06 AM
Hello Ludovic,

The skin "telerik" uses complex gradients and that prevents the colors from your palette from being applied. You can try setting the fillstyle property of your series to FillType solid like this:

<telerik:ChartSeries>
    <Appearance>
        <FillStyle FillType="Solid">
        </FillStyle>
    </Appearance>

Hope this helps! All the best,
Yavor
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Chart (Obsolete)
Asked by
Ludovic
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or