d3.js Data-Driven Documents

This is an amazing javascript library that allows you to impressively visualise your data.

When you download it from github, you have a great number of examples (I believe they are about 100).

In order to try those examples, you need to request those example htmls through http, I mean, using web server. Javascript usually don’t run very well, when you open the page from file system, as you know.

I tried them on a windows machine with IIS 7. One tricky bit was to set the mime type of json file. By default, IIS7 does not have json mime type, so you need to set it manually.

Setting json mime type

  1. Go to “MIME Types” on IIS Manager
  2. Add .json extension with mime type of “application/json”

Refresh the page, and your examples should run good and calm.

 

d3.js Data-Driven Documents

3 thoughts on “d3.js Data-Driven Documents

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