Save IWChartJS as Image

<< Click to Display Table of Contents >>

Navigation:  Forum >

Save IWChartJS as Image

Forum link

 

 

 


 

10-06-2023, 12:42 PM:

 

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

 

 

 


 

10-10-2023, 12:08 AM:

 

Not hard....

 

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

 

 

 


 

10-10-2023, 09:05 AM:

 

(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

 

 

 


 

10-27-2023, 12:33 PM:

 

Hi Alexandre,

 

Any news on this?

 

Cheers, Paul

 

 

 


 

11-28-2023, 10:38 AM:

 

Hi Alex,

 

Is this still on your To Do list?

 

 

 


 

09-27-2024, 06:23 AM:

 

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.