Adding Data to the Line Function

Learn to add data to the line function in D3.

We'll cover the following

We’re getting towards the end of our journey through the script now. The next step is to associate the array data with a new array that consists of a set of coordinates that we are going to plot.

I’m aware that the statement above may be somewhat ambiguous. You would be justified in thinking that we already had the data stored and ready to go. But that’s not strictly correct.

The code for the line

Get hands-on with 1200+ tech skills courses.