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

custom style of line series in chart area

1 Answer 161 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Gui
Top achievements
Rank 1
Gui asked on 11 Nov 2010, 04:32 AM
I want to show data using RadChart which is dynamic and has multiple line series. And also each series has  its own style depending on its value (in my app, I want to show nornal and dash lines in chart area). But I have the problem that in chart area, it can set only one style lineseries(normal or dash) but I want to show both. So anyone can suggest me how to do this.

Thank you 
GUI

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 12 Nov 2010, 09:53 AM
Hello Gui,

Take a look at the attached sample. It shows how to create two Line Series where one of the lines is dashed. To be able to show Line as dashed you should create custom Style (as shown in the attached project). This help topic explains styling via Styles in more detail- http://www.telerik.com/help/wpf/radchart-styling-and-appearance-styling-chart-series.html.
The chart is bound using  a list of business objects. In order to map to such kind of business objects, you have to create a new instance of SeriesMapping. Each SeriesMapping has ItemMapping property. For each ItemMappings the following properties are set - DataPointMember and FieldName which specifies from where the data should be taken. You can find more information about this in our help article -
http://www.telerik.com/help/wpf/radchart-populating-with-data-data-binding-with-manual-series-mapping.html

All the best,
Evgenia
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Gui
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or