Posts: 99
Threads: 17
Joined: Aug 2018
Reputation:
7
Location: The Netherlands
Hi,
I'm looking for a way to save an IWChartJS as an Image.
Can anyone give me some hints on how to do this?
Thanks, Paul
Posts: 2,261
Threads: 196
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
Not hard....
Let me see if I can prepare something here...
Posts: 99
Threads: 17
Joined: Aug 2018
Reputation:
7
Location: The Netherlands
Hi Alexandre,
Any news on this?
Cheers, Paul
Posts: 99
Threads: 17
Joined: Aug 2018
Reputation:
7
Location: The Netherlands
Hi Alex,
Is this still on your To Do list?
Posts: 2,261
Threads: 196
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
As I responded via email:
There is an unexpected behavior with the underlying ChartJS library (in JavaScript) that required some workarounds from our side.
The next IW update will allow you to save a IWChartJS image just like you do with a IWCanvas, using the same method, except that the IWChartJS will always generate an output as PNG file. If you need to save it as a JPEG (actually PNG should be the preferred format these days, because it compresses as well as a JPEG without losing quality) you will need to convert it from PNG from JPEG before saving the stream/file.