Make a Dashed Line

Learn to make your graph line into a dashed line.

Dashed lines totally rock!

One of the best parts about it is that they’re so simple to do! Literally, it is just one line!

Making a dashed line

So, let’s imagine that we want to make the line on our simple graph dashed. All we have to do is insert the following line in our JavaScript code here:

Get hands-on with 1200+ tech skills courses.