Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Save IWChartJS as Image
#1
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
Reply
#2
Not hard....

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

Any news on this?

Cheers, Paul
Reply
#5
Hi Alex,

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


Forum Jump:


Users browsing this thread: 1 Guest(s)