Telerik & Kendo UI R2 2021 Release Webinars on May 18-20. Save Your Seat!
New to Telerik UI for ASP.NET Core? Download free 30-day trial
Binding to grouped data
Also available for:API REFERENCE
Telerik Core charting extension can be integrated to a grouped data by ASP.NET Core DataSource. To do, so you can follow the steps below:
- Bind the chart to a ASP.NET Core DataSource control.
- Set the DataSource.group.field property to the name of the column (e.g., the “Country” field) in the underlying data which will be the criteria for grouping the chart series items into series: Group(group => group.Add(model => model.Country)
- Bind the X, Y and Size values of the series to the “Year, Standing and Number” fields:
series.Bubble(model => model.Year, model => model.Standing, model => model.Number)