ant-design-charts
ant-design-charts copied to clipboard
how to get canvas from chart in v2?
I need to get a canvas to convert into image and print into pdf. In previous 1.x versions, I used the onReady event to get the plot and then plot.chart.getCanvas() to get the canvas. But in version 2.x this method no longer exists. How can I get the canvas?
to convert canvas to image use - plot.toDataUrl('image/png')