interactive plots in javascript that render SVG using d3.js