jQuery Line Charts Binding to Grouped Data

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
grouped-data.jsp
GroupedDataController.java

Also available for:

API REFERENCE

Description

The Kendo UI for jQuery Line Chart supports grouped data binding.

To implement grouped data binding, you need to:

  1. Bind the chart to a Kendo UI DataSource instance.
  2. 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
  3. Bind the Y values of the series to the corresponding data source field (e.g., the "close" field)
  4. 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.

Support & Learning Resources

Additional Resources