Ben J. Christensen

Interactive Line Graph using d3.js

Continuing with the series of examples I’ve provided while using d3.js, this one is a javascript object which renders data as a line graph which can then be interacted with by scrubbing over it or changing the y-axis scale.

Click on the image or the bl.ocks.org link to see it in action.

Code: https://gist.github.com/2657838 http://bl.ocks.org/2657838

About these ads

Filed under: Code, User Interface

One Response

  1. alan says:

    I think this has the answer to the ‘ugly hack’ http://bost.ocks.org/mike/path/. You may have seen it already. Cheers for posting the example though – some nice formatting, style etc to borrow as I’m in the middle of having my engineer’s mind blown by d3.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Twitter Updates

View Ben Christensen's profile on LinkedIn
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: