1

我正在尝试生成由角度图表生成的画布图像,但我不断收到此错误。我的代码有问题吗?

这是画布:

<canvas id="radar" class="chart chart-radar radarCanvas"
          chart-data="radarData" chart-labels="radarLabels" chart-legend="true" chart-series="radarLegends"
          chart-options="options">
        </canvas>

这是功能:

$('.radarCanvas').each(function () {
            var canvas=this;
            img=JSON.stringify(canvas.toDataURL());

}); 
4

0 回答 0