getCanvas

gets the canvas context

object getCanvas(string context);

Parameters

contextstringthe context type (by default, 2d)

Returns

objectthe canvas object

Example

myChart.getCanvas();

See also
Back to top