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

Series Chart Coloring

3 Answers 272 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Sadhana
Top achievements
Rank 1
Sadhana asked on 09 Jul 2018, 06:57 AM

How to change series color for a series as per some range values for different data  points of the same series ? For  example I want to show blue color for data points  between range -10-0 degree celcius , yellow color for data points  between range 0-25 degree celcius & red color for data points for the same series between range 25- 100 degree celcius. I want to do it for BarChart , Polar chart & Radar chart of Telerik WPF controls.

 

https://docs.telerik.com/devtools/winforms/chartview/customization/custom-rendering 

I have demonstrated example described on above link . I just want to same thing with WPF bar chart , polar chart . Please suggest easiest way .

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 09 Jul 2018, 08:33 AM
Hello Sadhana,

The line rendering shown the WinForms documentation is not supported in the RadChartView for WPF. The line can be colored in a single color or using a gradient brush. However, you can color the different data point visuals in the different series. To do this you can use the DefaultVisualStyle or the PointTemplate properties of the chart series. You can read more about this in the Binding the Color of Series Items article.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Sadhana
Top achievements
Rank 1
answered on 09 Jul 2018, 09:03 AM
I want to apply it to Line Series of RadCartesianChart . How to apply it? Is it possible to apply in Polar chart?
0
Martin Ivanov
Telerik team
answered on 10 Jul 2018, 03:25 PM
Hello Sadhana,

I prepared an example showing how to apply the approach described in my last reply. I hope that helps.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ChartView
Asked by
Sadhana
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Sadhana
Top achievements
Rank 1
Share this question
or