You must be logged in to post your query.
Home › Forums › Chart Support › Export Canvasjs chart + images
I’ve got a chart with some images on it.
I was inspired by posts on this forum to do so.
Now I need to export those as images. A simple ‘chart.canvas.toDataURL()’ is nice and fine BUT it does not take the images.
– found in this thread, this JsFiddle with an image . Well, when you dynamically do the ‘chart.canvas.toDataURL()’ only the graph is exported, not the images.
– Same for this one from your docs: https://jsfiddle.net/ek75h0bd/ (I added a console.log in the resize event). do not export the images.
This is bad news…
Can you show me how to export the images please?
thanks in advance
Adding an image to the chart is not available as an inbuilt-feature as of now, but we do have it in our wish list. The tutorial in our documentation shows how to position an image over the chart by adding a few lines of extra code. As images are positioned on top of the chart externally, it doesn’t get exported. However, with the help of third-party libraries like html2canvas you can export chart & image together as shown in this JSFiddle.
Hi @shashiranjan , good news, I will try this html2canvas for my case!
You must be logged in to reply to this topic. Login/Register