Atozed Forums
Save IWChartJS as Image - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Save IWChartJS as Image (/thread-3550.html)



Save IWChartJS as Image - PaulWeem - 10-06-2023

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


RE: Save IWChartJS as Image - Alexandre Machado - 10-10-2023

Not hard....

Let me see if I can prepare something here...


RE: Save IWChartJS as Image - PaulWeem - 10-10-2023

(10-10-2023, 12:08 AM)Alexandre Machado Wrote: Not hard....

Let me see if I can prepare something here...

Thanks Alexandre!

I have another question regarding ChartJS.
In a line chart, is it possible to give the line the same color as the datapoints?
Currently, the line color is light grey.

Cheers, Paul


RE: Save IWChartJS as Image - PaulWeem - 10-27-2023

Hi Alexandre,

Any news on this?

Cheers, Paul


RE: Save IWChartJS as Image - PaulWeem - 11-28-2023

Hi Alex,

Is this still on your To Do list?


RE: Save IWChartJS as Image - Alexandre Machado - 09-27-2024

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.