We should be able to export entire chart dashboard in a Pdf or as an image

Posted by: nilesh_nichal on 8 May 2025, 2:14 am EST

    • Post Options:
    • Link

    Posted 8 May 2025, 2:14 am EST

    Hi,

    We want to provision the export of multiple wijmo charts in the form of a PDF or an image. Currently we can export a single chart using the ‘saveImageToFile’ function, but provision to export multiple charts together in a dashboard is not present. Please let us know if this can be done.

    We are using,

    Wijmo verison: 5.20242.21

    Angular version: 17.3.12

    Thank you.

  • Posted 9 May 2025, 6:27 am EST

    Hi Nilesh,

    This could be achieved, but it will be a complete custom implementation. First, you’ll have to export the charts to base64 strings, then use these base64 strings of all the charts and drag all the images on a canvas. After that, you can export that canvas to a single image file. You can also export the same image to PDF also if needed.

    Please refer to the following sample demonstrating the same - https://stackblitz.com/edit/angular-nwgkv5ay?file=src%2Fapp%2Fapp.component.ts

    Please note that, copy-pasting the exact code from the above sample may not work on your end, you may need to modify the code as per your dashboard display. You’ll have to update the code for calculating the x, y coordinates of the charts while drawing on canvas as per your requirements.

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels