[Lens] Regular bar chart stacked on histogram x axis when using multiple layers #72243
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Lens
good first issue
low hanging fruit
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Projects
Kibana version: master
Describe the bug: When a Lens chart has more than one layer with a histogram x axis, then bars are stacked even if non-stacked bar chart is selected. This is happening because
enableHistogramMode
is set to true.Steps to reproduce:
Expected behavior:
The bars should not be stacked
Any additional context:
Our logic for enabling histogram mode is this:
isHistogram && (seriesType.includes('stacked') || !splitAccessor)
:https://github.com/flash1293/kibana/blob/bbda3f99ef0d9780bcf1b9af88d26e3cc04e316e/x-pack/plugins/lens/public/xy_visualization/xy_expression.tsx#L448
This logic is missing the multiple layer case and the multiple metric case - in both cases we can't use histogram mode. The logic should be extended.
The text was updated successfully, but these errors were encountered: