Two sided horizontal barchart using d3.js

I knocked up a 2 sided horizontal bar chart in d3.js at work recently. The code is mostly stolen borrowed from Hidenari Nozaki’s excellent Creating a bar graph using D3.js blog post.

Here is what the graph looks like:

d3 bar chart

And here is the code. I’m very new to d3 so the code is very rough and ready.

The code is also on github and here is a live example.

Advertisements

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 )

Google+ photo

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

Connecting to %s