Converting Chart.js canvas chart to image using .toDataUrl() results in blank image

前端 未结 7 2016
失恋的感觉
失恋的感觉 2020-11-30 23:57

I am using Chart.js. I am trying to convert the chart to an image by getting a base 64 string. The tutorial (http://www.chartjs.org/docs/) devotes an entire 1 line on the to

7条回答
  •  悲&欢浪女
    2020-12-01 00:13

    You can also use the toBase64Image() method setting animation: false

    var options = {
        bezierCurve : false,
        animation: false
    };
    

    Updated Fiddle

提交回复
热议问题