Added all code for D3 Sparkline, NOT rendering in DOM.