RenderToCanvas: Boolean;
The RenderToCanvas property determines where the chart is rendered.
Available values:
true. The chart is rendered in SVGElement (by default).
false. The chart is rendered in Canvas.
Use JSON to set the property value, and the getRenderToCanvas method to get the property value.
Executing the example requires the ParallelCoordinates component named coord (see Example of Creating the ParallelCoordinates Component). Check where the chart is rendered:
// Check where the chart is rendered
if (coord.getRenderToCanvas()) {
console.log("The chart is rendered in SVGElement");
} else {
console.log("The chart is rendered in Canvas");
}
The result of checking is displayed in the console:
The chart is rendered in SVGElement
See also: