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

Different MarkerShape for each Series Mapping

1 Answer 66 Views
Chart
This is a migrated thread and some comments may be shown as answers.
fekberg
Top achievements
Rank 2
fekberg asked on 27 Apr 2012, 11:07 AM
Is it possible to set different MarkerShape for each series mapping?

I've got a Series Mapping that is created in a ViewModel and then bound to a RadChart.

I want each series to be represented by a different Legend/MarkerShape, is that possible? If so, how?

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Marchev
Telerik team
answered on 01 May 2012, 02:43 PM
Hello Filip,

Depending on your scenario you can use the MarkerShape property of the legend items to select a shape. This you can do during the DataBound  event. I have attached a simple app that demonstrates this.

This approach would work if it is possible to determine what shape should the legend marker be, meaning if it is possible to extract this info from, say, the series mapping (in the attached example - the series definition).

Let us know if this solution would work for your current project.  

Kind regards,
Petar Marchev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
fekberg
Top achievements
Rank 2
Answers by
Petar Marchev
Telerik team
Share this question
or