Example of Sorting in Javascript 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.

More Details...

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 stacked column series can be found in this documentation section.