RevealBi / Reveal.Sdk

Issue tracker - Reveal SDK https://www.revealbi.io/
https://www.revealbi.io/
3 stars 0 forks source link

Add break-inside: avoid style to visualization container element when exporting to PDF. #229

Open ItWorksOnMyMachine opened 3 days ago

ItWorksOnMyMachine commented 3 days ago

Is your feature request related to a problem? Please describe. When exporting to PDFs it's common to see visualizations span a page break. This is not a good experience.

Describe the solution you'd like I'd like to see an option to avoid this. It will, as a consequence, introduce excessive whitespace, which some may not like as an alternative. So, perhaps adding an optional flag that will add a "break-inside: avoid" style to the div containing a visualization. We use this when exporting reports and other pages to PDF within our app. Our customers tend to prefer extra whitespace over split visualizations.

Describe alternatives you've considered There aren't really any alternatives.

Additional context

split-vis