• Material
  • Fabric
  • Bootstrap
  • Bootstrap v4
  • High Contrast
Theme Selection
Mode Selection
Essential JS 2
All Controls

Example for Sorting in ASP.NET Core Chart Control

This sample visualizes sales for vehicle range for different zone with default stacked column series in chart. Legend in the sample shows the information about those series.

Sort By:

In this example, you can see how to sort the series data in chart. To sort the data points of the series, use the sort method. This method determines whether the series data points should be sorted by their arguments or values.

Tooltip is enabled in this example, to see the tooltip in action, hover a point or tap a point in touch enabled devices.

Injecting Module

Chart component features are segregated into individual feature-wise modules. To use stacking column series, we need to inject StackingColumnSeries module using Chart.Inject(StackingColumnSeries) method.

More information on the smart axis labels can be found in this   documentation section.