elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.77k stars 8.17k forks source link

[Vega] PDF reports do not have good dimensions compared to PNG reports #183550

Open rshen91 opened 4 months ago

rshen91 commented 4 months ago

Kibana version: 8.15.0 local

Browser: Chrome Version 124.0.6367.201 (Official Build) (arm64)

Describe the bug: Vega reports only for PDFs have strange dimensions: [Logs] Visitors Map (5).pdf

Same vega report but a PNG: Logs  Visitors Map (2)

We believe it might have something to do with the screenshotting plugin or the dimensions are not be respected for PDFs.

Steps to reproduce:

  1. Load sample data - web logs has a vega map but any vega visualization shows this issue
  2. Go to vega and hit share and then PDF and export file
  3. Once the PDF report finishes you can see that the dimensions are very squished.

Expected behavior: I would expect that the PDF would look similar to the PNG example and be more human readable.

elasticmachine commented 4 months ago

Pinging @elastic/appex-sharedux (Team:SharedUX)

elasticmachine commented 3 months ago

Pinging @elastic/kibana-visualizations (Team:Visualizations)

petrklapka commented 3 months ago

I've asked the Viz folks to take a look at their specific reporting code first and volley it back to us if they don't find anything. Sticking this in "discussion" and "soon" for us so we don't loose track of it.

markov00 commented 3 months ago

@petrklapka @rshen91 a couple of observations:

Screenshot 2024-06-13 at 16 12 51 Screenshot 2024-06-13 at 16 13 07 Screenshot 2024-06-13 at 16 13 00 Screenshot 2024-06-13 at 16 13 13
petrklapka commented 3 months ago

Thanks for taking a look @markov00 ! We'll take this one back then and prioritize at next triage.
cc: @rshen91 & @tsullivan

tsullivan commented 1 month ago

I'm moving this to the icebox since this is an internally-reported issue and PDF reports from the visualize app do not seem to be used very much.