Atozed Forums

Full Version: Save IWChartJS as Image
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Not hard....

Let me see if I can prepare something here...
(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
Hi Alexandre,

Any news on this?

Cheers, Paul
Hi Alex,

Is this still on your To Do list?
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.