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

Change Radar Chart PointTemplate in VB codebehind

1 Answer 54 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 11 Dec 2012, 01:11 PM
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.

Thanks,

Jason.

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 14 Dec 2012, 01:22 PM
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.

Greetings,
Ivan N.
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ChartView
Asked by
Jason
Top achievements
Rank 1
Answers by
Missing User
Share this question
or