Use NVD3.js to display the chart. i.e. Don't reinvent the wheel.