This question is locked. New answers and comments are not allowed.
iConect Developer - Mike
Top achievements
Rank 1
iConect Developer - Mike
asked on 23 Jan 2012, 09:09 PM
How do you change the colors that the pie chart uses? Right now it seems to just cycle 5 colors:
orange, yellow, green, blue, magenta
But I'd like to be able to supply it with my own set of colors.
orange, yellow, green, blue, magenta
But I'd like to be able to supply it with my own set of colors.
5 Answers, 1 is accepted
0
Accepted
Hi,
The SeriesColors configuration method can be used to change the colors. It accepts as parameter a collection of strings which represent the colors to be applied. For example:
Kind regards,
Daniel
the Telerik team
The SeriesColors configuration method can be used to change the colors. It accepts as parameter a collection of strings which represent the colors to be applied. For example:
.SeriesColors(new string[] { "#63FFEF", "black", "green", "#FF2C28" })Kind regards,
Daniel
the Telerik team
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Joanes
Top achievements
Rank 1
answered on 02 Feb 2012, 12:17 PM
Hi:
I want to do the same but dynamically.
My set of colors are included on the data, I would like to set the color array for .SeriesColor dynamically, taking them from the data bound.
Is that possible to do it on the view, inside the telerik component by using razor syntax on a client-side bound pie chart?
Thanks
I want to do the same but dynamically.
My set of colors are included on the data, I would like to set the color array for .SeriesColor dynamically, taking them from the data bound.
Is that possible to do it on the view, inside the telerik component by using razor syntax on a client-side bound pie chart?
Thanks
0
Melvin
Top achievements
Rank 1
answered on 20 Feb 2012, 08:39 AM
Hi,
May I know who can I set certain color for each slice in the pie chart?
Is there any way that I can do it in XAML, preferable binding the color for each slice.
Need help urgently!
Thanks and regards,
ML
May I know who can I set certain color for each slice in the pie chart?
Is there any way that I can do it in XAML, preferable binding the color for each slice.
Need help urgently!
Thanks and regards,
ML
0
Hello Melvin,
This forum is dedicated to our MVC charting. Please post your question about our XAML charts in the relevant forum.
Kind regards,
Sebastian
the Telerik team
This forum is dedicated to our MVC charting. Please post your question about our XAML charts in the relevant forum.
Kind regards,
Sebastian
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Craig
Top achievements
Rank 1
answered on 21 Jun 2012, 01:49 PM
Hi
I've also got this issue and I would like to extend the range of colors but I would like to understand a few things first.
I'd like the colors I use to be consistent with the theme.
Are the defaults colors linked to the selected theme e.g. Metro?
If yes, could I modify the theme to offer a larger range of colors for this purpose?
If no, what's the best way to extract the theme colors so I can use them in .SeriesColors?
Thanks
Craig
I've also got this issue and I would like to extend the range of colors but I would like to understand a few things first.
I'd like the colors I use to be consistent with the theme.
Are the defaults colors linked to the selected theme e.g. Metro?
If yes, could I modify the theme to offer a larger range of colors for this purpose?
If no, what's the best way to extract the theme colors so I can use them in .SeriesColors?
Thanks
Craig