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

[Solved] Random Color

2 Answers 370 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
fasda
Top achievements
Rank 1
fasda asked on 05 Nov 2012, 07:10 PM
Is there a way to create bar charts with random colors, instead the same (blue/default) color to all bars ?

Pie chart already do use diferent colors for obvious reasons. Its possible do that automatically with bars ?

2 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 06 Nov 2012, 01:16 PM
Hi,

Thank you for using our RadControls for Windows 8!

You can use the PaletteName property of RadChart and choose one of our predefined palettes. Then you can use the PaletteMode property of BarSeries to choose how the palette will apply - per series or per data points.
More information for BarSeries is available in our online documentation where you can check all the properties pretty easy because of the hierarchical structure of the documentation - http://www.telerik.com/help/windows-8-xaml/radchart-cartesianchart-series-categorical-barseries.html

I hope this helps. Let me know if I can help you in some other way.

 

Greetings,
Ivaylo Gergov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
felipe
Top achievements
Rank 1
answered on 07 Nov 2012, 01:23 PM
it Works. Thanks!
Tags
Chart for XAML
Asked by
fasda
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
felipe
Top achievements
Rank 1
Share this question
or