Default Chart Color Palette

6 posts, 0 answers
  1. Kannan
    Kannan avatar
    14 posts
    Member since:
    Jul 2013

    Posted 23 Jul 2013 Link to this post

    Hi,

    Is telerik have default Chart Color Palette  ?  not in system color (AreaChart.PlotArea.YAxis.MinorGridLines.Color =color.white;)

    Example :

    AreaChart.PlotArea.YAxis.MinorGridLines.Color =ChartColorPalette.AcidWash;

    Kannan.
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1492 posts

    Posted 26 Jul 2013 Link to this post

    Hi Kannan,

    Currently the RadHtmlChart's has 10 built-in colors for the series for each skin. Having a client-side rendering, however, the RadHtmlChart's skins definition is inside a JavaScript file, so that its predefined colors are not enum and cannot be accessed externally.

    Regards,
    Danail Vasilev
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jeremy
    Jeremy avatar
    2 posts
    Member since:
    Apr 2014

    Posted 17 Apr 2014 in reply to Danail Vasilev Link to this post

    Is there a quick way to modify the JS in order to specify a custom color palette?
  5. Stamo Gochev
    Admin
    Stamo Gochev avatar
    157 posts

    Posted 22 Apr 2014 Link to this post

    Hi Jeremy,

    Could you give me additional information on the matter - what is the purpose of creating a chart palette?

    Regarding your question - if you want to modify the skins of the chart, you can edit the RadHtmlChartSkins.js file which is available in our source code.

    On the other hand, if you want to change the color of specific element (and not use the default color from the skin), you can use either the Color or the BackgroundColor property in the corresponding chart element.

    Regards,
    Stamo Gochev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Jeremy
    Jeremy avatar
    2 posts
    Member since:
    Apr 2014

    Posted 22 Apr 2014 in reply to Stamo Gochev Link to this post

    Thanks for the reply, We have an corporate color palette for our charts across the board and need a way to specifically specify colors in a palette. Changing the color of each element individually won't work. There is no way to create a custom color palette or modify the colors of an existing palette?
  7. Stamo Gochev
    Admin
    Stamo Gochev avatar
    157 posts

    Posted 25 Apr 2014 Link to this post

    Hi Jeremy,

    Thanks for clarifying the matter. The desired functionality is not supported by RadHtmlChart. However, you can try the approach with modifying the chart's skins.

    I am attaching a sample page, which demonstrates how you can apply custom colors to the chart.

    Regards,
    Stamo Gochev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017