New to Telerik UI for ASP.NET Core? Download free 30-day trial
Binding to local data
- EXAMPLE
- VIEW SOURCE
- Edit in Theme Builder
-
Change Theme
default
- Main
- Main Dark
- Nordic
- Ocean Blue
- Purple
- Turquoise
- Main
- Main Dark
- Nordic
- Urban
- Vintage
- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
- Main
- Main Dark
- Opal
- Silver
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
The Telerik Core Polar chart can be instructed to display data from local data storage using its built-in data-binding capabilities.
There are two ways to bind the chart:
- Server - the chart will bind to a supplied model
- Ajax - the chart will perform Ajax requests to populate its series.
In this example you can see how to bind the chart using the server approach. You need to create an action method and pass the SunPosition list located in the \Models\Chart\ChartDataRepository.Polar.cs file as a model. After that you should configure the data bound Azimuth and Altitude fields for the Series. Note that the view has to be strongly typed so that the chart is able to load its data.