Skip to content

Label position for stacked bar charts confusing #64188

@stefanroeck

Description

@stefanroeck

What happened:
For stacked barcharts, the value label is shown above (vertical) or right (horizontal) of the referencing bar. That means, that the value is shown inside of a different bar that is referenced. This is very confusing. When hovering a bar, a different value is shown in the tooltip then in the bar itself.

What you expected to happen:
For stacked barcharts, render the label inside of the bar instead of above or right.

How to reproduce it (as minimally and precisely as possible):
See playground: https://play.grafana.org/d/timeseries-stacking2/timeseries-and-barchart-stacking?orgId=1&from=1639455966000&to=1642581845000&viewPanel=18

In the example screenshot, the blue bar with the value 12 is hovered, however, the bar itself shows the value 4 from the bar below:
Bildschirm­foto 2023-03-04 um 17 53 02

Environment:

  • Grafana version: 9.4.3
  • Data source type & version: all
  • OS Grafana is installed on: doesn't matter
  • User OS & Browser: doesn't matter
  • Grafana plugins: doesn't matter

Metadata

Metadata

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions