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