[OutSystems Charts] Exporting page to PDF is rendering the chart out off the page
outsystems-charts
Reactive icon
Forge component by Platform Maintenance
Application Type
Reactive

Hi all, 

we are including a garph Area in one of your exports to PDF, but the graph goes out off the page: 

What we did to fix this:

  • remove all the configurations from the graph
  • adding a width on the configurations, but it cuts/hides some information:

We also added the export module script from Highcharts (https://www.highcharts.com/docs/export-module/export-module-overview) but it only export the graph and we want to have all the content of the page.

Any ideas?

Thank you,

César

The problem was happening because the PDF was generated and the animation of the widget didn't had finish yet.

The solution is to remove the animation on the AdvancedFormat -> HighchardtsJSON :

plotOptions: {    

    series: {

        animation: false

    }

}



Hello @César Miguel Cação ,

Usually this PDF components try to render the page html is a headless browser and sometimes the way it renders it's not the same as Chrome or Firefox.

Can you share what are you using to create the PDF?

Thanks,

Bruno Martinho

Hi @Bruno Martinho ,

we are using the UltimatePDF component and the PrintToPDF_Advanced action. 

But well catched, I dind't think that can be related..


Thank you,

César

The problem was happening because the PDF was generated and the animation of the widget didn't had finish yet.

The solution is to remove the animation on the AdvancedFormat -> HighchardtsJSON :

plotOptions: {    

    series: {

        animation: false

    }

}



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.