elastic / kibana

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

[Lens] Legend size controls break with large fields #130197

Open ghudgins opened 2 years ago

ghudgins commented 2 years ago

Kibana version: 8.3 unreleased (main)

Elasticsearch version: 8.3 unreleased

Server OS version: OSX

Browser version: Chromium Edge

Browser OS version: OSX

Original install method (e.g. download page, yum, from source, etc.): from source

Describe the bug: Setting a legend to X-large, having a large breakdown value, and specifying "inside" for the visualization results in a legend that exceeds the size of the visualization

Steps to reproduce:

  1. Sample data logs - do a time series with a break down by of "message.keyword"
  2. Set legend to XL size
  3. Set legend to "inside"

Result:

image

Expected behavior: a legend of equal width to the "outside" width

Note: it seems all sizes do this - something seems off with legend size on main

elasticmachine commented 2 years ago

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

stratoula commented 2 years ago

This happens on 8.2 btw too. @markov00 I assume that this is something that needs to be fixed by your end, right?

Update: I think that this never worked fine for the inside position and very large legends

markov00 commented 2 years ago

Yes, this is on our end

flash1293 commented 2 years ago

@markov00 is there an elastic-charts issue to cross-reference?

markov00 commented 2 years ago

I've just created one