create chart using svg's and javascript