[XY axis] Fixes bug on bar chart appearing as stacked when the normal mode is selected#90602
Conversation
|
@nickofthyme wdyt? I think that the |
|
Ugh, I don't think it's that simple. From your image, it looks like the enzone is now computed wrong. Let me take a look later today and see. |
|
Perfect! Thank you Nick ❤️ |
|
Ok this a little tricky. The issue is using histogram mode forces stacked bars, so there is a check to determine when we can use the histogram mode without forcing it, namely when every bar series is stacked, or where there is only a single bar series. But the second condition just ignored the stacked check, not sure what I was thinking at the time, but that is wrong, it should check all bar series no matter how many there are. So removing that second condition shows the The fix you had would have worked but the |
8783040 to
5ab49e2
Compare
nickofthyme
left a comment
There was a problem hiding this comment.
Let me know if you want me to put up a pr so that you can approve and merge.
|
Pinging @elastic/kibana-app (Team:KibanaApp) |
|
@elasticmachine merge upstream |
stratoula
left a comment
There was a problem hiding this comment.
It works great Nick, I tested it and it solves the problem. I have tested various scenarios and it works. Thank you a lot, I assigned the bug to you as you solved it 🙂 I can't approve as it was originally my PR but feel free to merge it!
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |

Summary
Closes #90599.
When I create a new bar chart with the new XY axis plugin, changing the mode to normal doesn't affect it. The bar chart continues to be displayed as stacked. This PR fixes it.
Checklist
Delete any items that are not applicable to this PR.
For maintainers