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

How to force series color ?

6 Answers 767 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
scott
Top achievements
Rank 1
scott asked on 26 Mar 2013, 12:21 AM
Got a chart and elsewhere user gets to pick a color.  How can I force a particular series to render in the user specified color?

Thanks -
Scott

6 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 28 Mar 2013, 12:24 PM
Hello Scott,

You can set the BackColor of the series to change their color, for example in BarSeries. For LineSeries, you should use the BorderColor property.

I hope this helps.
 

Greetings,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
0
scott
Top achievements
Rank 1
answered on 28 Mar 2013, 12:36 PM
It sure does... Thanks Stefan...
0
Cristiano
Top achievements
Rank 1
answered on 10 May 2013, 10:29 AM
and in the Pie Series?
0
Stefan
Telerik team
answered on 15 May 2013, 09:56 AM
Hello Cristiano,

Here is how you can do that: 
radChartView1.Series[0].Children[0].BackColor = Color.Red;
radChartView1.Series[0].Children[1].BackColor = Color.Green;
radChartView1.Series[0].Children[2].BackColor = Color.Blue;

Alternatively, you can create a custom palette, as described here: http://www.telerik.com/help/winforms/chartview-customization-palettes.html.

I hope that you find this information useful.

Kind regards,
Stefan
the Telerik team
RadChart for WinForms is obsolete. Now what?
0
boddupally
Top achievements
Rank 1
answered on 31 Mar 2017, 12:12 PM
Hi  i have to change the default colors of DoughnutSeries of telerik can any one give me the color code in c# for winrt development
0
Hristo
Telerik team
answered on 03 Apr 2017, 02:09 PM
Hi,

Thank you for writing.

The approach my colleague suggested in the previous post is also valid for the DonutSeries. Please note that this thread is discussing Telerik UI for WinForms. In case you are using a different product please ask your question in the relevant forums.

Please let me know if you have other questions.

Regards,
Hristo
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ChartView
Asked by
scott
Top achievements
Rank 1
Answers by
Stefan
Telerik team
scott
Top achievements
Rank 1
Cristiano
Top achievements
Rank 1
boddupally
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or