Chartjs-How to See Only the Image of Chart

2👍

Based on the question, I created a fiddle. I am removing the chart using the below line.

              animation: { 
                    duration: 0,
                  onComplete: function(animation){
                      document.querySelector('#myChart').remove();
                      document.querySelector('#myImage').setAttribute('src', this.toBase64Image());
                  }
              }

JSFiddle: here

Leave a comment