Spaces:
Running
Running
Update wps-test/ui/chartjs.html
Browse files- wps-test/ui/chartjs.html +1 -1
wps-test/ui/chartjs.html
CHANGED
@@ -22,7 +22,7 @@ const myChart = new Chart(ctx, {type: 'bar',
|
|
22 |
</body>
|
23 |
<script>
|
24 |
function fx(){
|
25 |
-
var a=canvas.get(0).toDataURL();
|
26 |
document.getElementsByTagName('p')[0].innerText=a
|
27 |
}
|
28 |
</script>
|
|
|
22 |
</body>
|
23 |
<script>
|
24 |
function fx(){
|
25 |
+
var a=canvas.get(0).toDataURL('image/png');
|
26 |
document.getElementsByTagName('p')[0].innerText=a
|
27 |
}
|
28 |
</script>
|