Example of Dashed Line in Javascript Chart Control

Dashed Line

This sample illustrates a line series with dash array. Dashed lines are animated by using css animation.

More Details...


In this example, you can see how to render and configure the line type charts. Line type charts are used to represent time-dependent data, showing trends in data at equal intervals. You can use dashArray, width, fill properties to customize the line. marker and dataLabel are used to represent individual data and its value. Tooltip is enabled in this example, to see the tooltip in action, hover a point or tap on a point in touch enabled devices. Injecting Module Chart component features are segregated into individual feature-wise modules. To use line series, we need to inject LineSeries module using Chart.Inject(LineSeries) method. More information on the line series can be found in this documentation section.