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

Default Chart Color Palette

5 Answers 230 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Kannan
Top achievements
Rank 1
Kannan asked on 23 Jul 2013, 02:00 PM
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.

5 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 26 Jul 2013, 07:03 AM
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.
0
Jeremy
Top achievements
Rank 1
answered on 17 Apr 2014, 05:56 PM
Is there a quick way to modify the JS in order to specify a custom color palette?
0
Stamo Gochev
Telerik team
answered on 22 Apr 2014, 07:25 AM
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.

 
0
Jeremy
Top achievements
Rank 1
answered on 23 Apr 2014, 12:54 AM
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?
0
Stamo Gochev
Telerik team
answered on 25 Apr 2014, 06:22 AM
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.

 
Tags
ColorPicker
Asked by
Kannan
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Jeremy
Top achievements
Rank 1
Stamo Gochev
Telerik team
Share this question
or