Change Radar Chart PointTemplate in VB codebehind

2 posts, 0 answers
  1. Jason
    Jason avatar
    14 posts
    Member since:
    Nov 2012

    Posted 11 Dec 2012 Link to this post

    Can aybody tell me how to do this?

    I've seen how to do it in XAML, but my charts are generated in VB.

    I want to be able to change the shape, size and colour of the datapoints on my radar chart.


  2. Missing user
    Missing user avatar

    Posted 14 Dec 2012 Link to this post

    Hello Jason,

    You can set the series' PointTemplate by declaring the DataTemplateas a resource and then locating it at runtime like this:
    Dim series = TryCast(Me.RadChart1.Series(0), PolarLineSeries)
    series.PointTemplate = TryCast(Me.Resources("pointTemplate"), DataTemplate)

    Please see the attached sample project for more information.

    Ivan N.
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top