How does ZingChart render charts in the browser?

Charts are rendered in SVG by default. SVG, or Scalable Vector Graphics, is vector-based and generally the preferred format for rendering charts. Alternatively, you can set the render output to the pixel-based Canvas, which some users prefer for very large data sets or server-side image export. For legacy IE users (those using Internet Explorer 8 or older), the render output will automatically be set to VML. ZingChart will work in all browsers as far back as IE6.

To explicitly 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 : 'svg', // 'canvas'
});

See our ZingChart Object and Methods documentation for more information.

Have more questions? Submit a request

0 Comments

Article is closed for comments.