Added legend for graph, and removed hardcoding when converting json
Finally have a good version of d3-tip.min(2).js
Warning this d3-tip is modified.
Although the d3-tip.js is probably the same as the one on github,
d3-tip.min.js also fiddles with display