KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

PDF Barchart width problems #2753

Closed Luigi Bisbiglia opened this topic on on Jul 6, 2022 - 2 comments

Luigi Bisbiglia commented on Jul 6, 2022

Hello, i'm doing a PDF in A4 format that must export some tables and BarCharts into it. The problem comes when i export the PDF, the Barchart is really small, and i wanna made it on all screen, like this example.

I founded this problem on the forum, like here. Doing this solution i resolve the problem, but i can't set BarChart precise width but increasing his width to 200% and i lost the possibility to center allign items on the page.

Can someone help me? Thanks

Sebastian Morales commented on Jul 8, 2022

Pls set your chart's width to be 100%, put it inside a div with precise width (like "600px") and use this css rule for the div to be center horizontally:

<div style="width: 600px; margin: 0 auto;">
    {your chart here, "width" => "100%"}
</div>

Let us know if this works for you. Tks,

Luigi Bisbiglia commented on Dec 4, 2023

I've solved. I close the ticket.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

None