imageDataURL

Returns a PNG image of the gauge encoded as a Data URL.

This method is obsoleted and replaced by exportImage, but will remain fully functional.

Returns

String A data URL with image/png MIME type. Will be null if the browser does not support the canvas element.

Example - show a snapshot of the gauge