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

Get the colors of the legend

1 Answer 14 Views
Chart
This is a migrated thread and some comments may be shown as answers.
John Giblin
Top achievements
Rank 1
John Giblin asked on 13 Dec 2011, 03:09 PM
I want to do something similar to the example #Chart/EmptyValues.  There is a legend/datagrid to the left of the chart. When I looked at the code it appears the hard code the colors for the  datagrid.  is there a way to get the colors used in the chart to do something more dynamic.

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 15 Dec 2011, 09:18 AM
Hi John Giblin,

You can use a custom palette brushes collection.
As reference please check this example.

If you need the default chart colors, we will provide you with the needed palette. Just let us know which Telerik theme [and series definition respectively] is used in your application.

Greetings,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
John Giblin
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or