Category / Section
How to display the dash line instead of solid line for line series in the Chart?
1 min read
The Essential Chart supports displaying the dash line instead of default solid line for line series by using the DashArray property. The following code example illustrates the same.
CSHTML
@(Html.EJ().Chart("container") .CommonSeriesOptions(options=> options.Type(SeriesType.Line) .DashArray("5,5") .Marker(marker=>marker.Visible(true))) )
The following screenshot displays the line series with dotted lines.