Simple Chart Maker using SVG and native Javascript