Articles in this section
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.

The line series with dotted lines

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied