Google Chart getImageUri for Gauge chart

571 views Asked by At

In our application we are creating lots of charts using google charts and we need to create image from those charts. For core charts we are able to generate the images using getImageUri, but for gauge charts it is not supported. How can we achieve this?

1

There are 1 answers

0
mkr231 On

You can try using html2canvas library:

     $('#load').click(function(){

        html2canvas($('#chartdiv'), {
            onrendered: function (canvas) {
                var img = canvas.toDataURL("image/png")
                window.open(img);
            }
        });

});