Drawing multiple lines with D3.js

raspberry-pi Jan 20, 2015

After a great deal of frustration and much trial and error I have finally managed to get D3.js to plot multiple lines, and when the data changes the lines are updated, complete with transitions.

Head over to http://brew-pi.dack.com.au/temps/d3 to see the code behind the example below.

Period:

Tags

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.