How do I render a chart in SVG or Canvas?

Charts are rendered in SVG by default. Users that prefer can change the render output to Canvas.

To set the render output, add an output attribute to the render method. Specify how you want the chart rendered.

zingchart.render({
 id : 'myChart',
 data : myConfig,
 height : 400,
 width : 600,
 output : 'canvas', // 'svg'
});


See our documentation on the ZingChart Object and Methods for more information.

Have more questions? Submit a request

0 Comments

Article is closed for comments.