jquery 生成的 chart 如何自动保存为图片,想插入到邮件附件里
1
vanton Nov 27, 2021
# .toBase64Image(type?, quality?)
> This returns a base 64 encoded string of the chart in its current state. ``` myLineChart.toBase64Image(); // => returns png data url of the image on the canvas myLineChart.toBase64Image('image/jpeg', 1) // => returns a jpeg data url in the highest quality of the canvas ``` |