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

Programmatically access color pallet

1 Answer 98 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Nuno
Top achievements
Rank 1
Nuno asked on 14 Jun 2011, 04:02 PM

Hi All,

is there a way to access programmatically the default color pallet existing in the Chart.xaml file?

e.g.: <telerikCharting:ResourceDictionaryCollection x:Key="SeriesStyleResources" Repeat="True" >
...

My chart reflects data I have in a radgrid, a row = a bar in the radchart. So, when a user filters data in the grid it will sync/update the radgrid and I need persist the initial color that was initially assigned to a row ('client name'). It shouldn’t have a different color just because there are less rows/clients in the radgridview after filtering.

Any ideas??

Thanks!

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 15 Jun 2011, 03:44 PM
Hi Nuno,

There is no direct way to get the Colors of the default Palette programmatically. What I can suggest is that you create your own Palette of colors as this is shown in our help topic. On the other hand if you prefer the Theme colors - can you tell us which Theme are you using so that we can provide you the default colors from it?

Best wishes,
Evgenia
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Nuno
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or