Home forums Using CanvasJS Exporting chart with padding around canvas Reply To: Exporting chart with padding around canvas

#23831

Indranil Deo
Member

@bajlo,

You can add a padding/border to the DIV(container) then capture the image of the DIV(container) using html2canvas library and export the image. Please take a look at this jsfiddle.

____________
Indranil Deo,
Team CanvasJS