Articles in this section
Category / Section

How to display the dash line instead of solid line for line series in the JavaScript Chart?

2 mins read

Essential jQuery 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.


    commonSeriesOptions: {                
        type: 'line',
        dashArray: '10, 5',
        marker: {
            visible: true,


The following screenshot displays the line series with dotted lines.

The line series with dotted lines in jQuery Chart

JS Playground sample link: Line customization



I hope you enjoyed learning about how to display the dash line instead of solid line for line series in the Chart.

You can refer to our jQuery Chart’s feature tour page to know about its other groundbreaking feature representations.

For current customers, you can check out our jQuery components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our jQuery Chart and other jQuery components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!


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