Different MarkerShape for each Series Mapping

2 posts, 1 answers
  1. fekberg
    fekberg avatar
    5 posts
    Member since:
    Dec 2011

    Posted 27 Apr 2012 Link to this post

    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?
  2. Answer
    Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 01 May 2012 Link to this post

    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 >>

  3. DevCraft banner
Back to Top