Home › Forums › Chart Support › How to display chart as a static image (png, jpg) › Reply To: How to display chart as a static image (png, jpg)
First, thanks for this interesting tool. It seems to do exactly what i need.
However, i got an issue i can’t fix by myself.
I use a pie chart. Once it’s displayes, i neet it to be duplicate as an image i will display in the same page.
As i saw in diferent topic,
var image = new Image();
image.src = chart.canvas.toDataURL(“image/png”);
alert( image.src );
should solve the issue.
But the url inside the alert box is an empty image with the mention “Trial version”
Is that normal ? and is it the good way for my need ?
Please could you gie me a hand ?