Exporting dhtmlxChart

Hello,

I was going through (download chart as JPEG or PDF) for exporting my dhtmlx chart to excel.
my code snippet:
that.mychart = graphattachLayout.cells(“b”).attachChart({
view : “bar”,
value : “#Distance#”,
/////// (rest of chart properties, chart is displayed properly on my layout)
});

on this chart element I am calling:
that.mychart.getCanvas().canvas;

I am getting exception:
that.mychart.getCanvas is not a function

Please help at the earliest

Unfortunately currently there is no getCanvas() method in the dhtmlxChart.

There is no inbuilt solutions to export the dhtmlxChart, but you may use some third-side functionality, for example “html to png”, to generate an image from your chart.