Skip to content

VueUiDashboard - PDF export from generatePdf does not fit chart size (too much white space) #246

@thawat6

Description

@thawat6

Title:
PDF export from generatePdf does not fit chart size (too much white space)


Description:
When exporting a dashboard to PDF using generatePdf, the chart does not fit the available page space.

The chart is rendered very small, leaving a lot of unused white space around it.


Steps to reproduce:

  1. Create a dashboard with VueUiDashboard and add one chart.
  2. Export the dashboard using generatePdf().
  3. Open the PDF.

Current behavior:

  • Chart appears too small.
  • Page space is not properly fitted to the chart.

Expected behavior:

  • The chart should scale to fit the page size.
  • If the chart/dashboard is taller than one page, it should be split into multiple pages automatically.

Screenshot:

Image Image

Environment:

  • vue-data-ui: 2.15.4
  • Vue: 3.x
  • Browser: Chrome
  • OS: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions