changxin commited on
Commit
4462a19
1 Parent(s): b3cac79

Update wps-test/ui/chartjs.html

Browse files
Files changed (1) hide show
  1. 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>