Rendering Modes

The Chart supports two mode for rendering its dataCanvas (bitmap) and SVG (vector graphics).

By default, the Chart delivers its data in SVG. You can navigate between the rendering modes and modify them by setting the renderAs property.

Example
View Source
Edit In Stackblitz  
Change Theme:

When to Use SVG

The default SVG rendering mode is recommended for general use.

Using vector graphics ensures that:

  • The browser zoom does not degrade the image.
  • The prints are crisp regardless of the resolution.

When to Use Canvas

When performance is criticalwhen rendering large dashboards and frequently updated chartsit is recommended to use Canvas.

The browser does not have to maintain a live DOM tree for the Chart which results in:

  • Quicker screen updates.
  • Lower memory usage.

On the downside, rendering to a fixed resolution bitmap results in:

  • Blurry images on zoom.
  • Poor print quality.

In this article

Not finding the help you need?