iConect Developer - Mike
Posted
on Jan 23, 2012
(permalink)
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.
Reply
Answer
Daniel
Daniel
Posted
on Jan 24, 2012
(permalink)
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
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
Reply
Joanes
Posted
on Feb 2, 2012
(permalink)
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
Reply
Melvin
Posted
on Feb 20, 2012
(permalink)
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
Reply
Sebastian
Sebastian
Posted
on Feb 20, 2012
(permalink)
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
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license!
Book your seat now >>
Reply
Craig
Posted
on Jun 21, 2012
(permalink)
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
Reply