How do I render a chart in SVG or Canvas?