Change colorsof a skin

Thread is closed for posting
2 posts, 0 answers
  1. Ludovic DE FREITAS
    Ludovic DE FREITAS avatar
    4 posts
    Member since:
    Apr 2006

    Posted 17 Feb 2012 Link to this post

    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 ?
  2. Yavor
    Admin
    Yavor avatar
    401 posts

    Posted 21 Feb 2012 Link to this post

    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 >>
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top