{{ title }}

This sample illustrates how to export FlexPie as a raster image using drawImage method. Read More

The sample uses the ability of any FlexChartBase-based control to convert itself to an raster image, so the following technique is used here:

  1. Instantiate FlexPie control.
  2. Convert it to a raster image using the control's saveImageToDataUrl method.
  3. Draw the image onto the document using drawImage method.

The sample uses CanvasRenderEngine.ts, a polyfill that makes the saveImageToDataUrl method work in IE if image is being saved in a raster format.