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.
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.

