jQuery Line Charts Binding to Grouped Data
Loading Demo...
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
grouped-data.jsp
GroupedDataController.java
Also available for:
API REFERENCEDescription
The Kendo UI for jQuery Line Chart supports grouped data binding.
To implement grouped data binding, you need to:
- Bind the chart to a Kendo UI DataSource instance.
- Set the DataSource.group.field property to the name (e.g., the “symbol” field) of the column in the underlying data which will be the criteria for grouping the chart series items into series
- Bind the Y values of the series to the corresponding data source field (e.g., the "close" field)
- Bind the categoryAxis to the corresponding field (e.g., the "date" field)
In this example, the Line Chart displays data about stock prices grouped by company.
This Line Chart example is part of a unique collection of hundreds of jQuery demos, with which you can see all Kendo UI for jQuery components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Kendo UI for jQuery Dojo or ThemeBuilder.