Describe the issue
Whenever a user creates a bar series and enables the enableHistogramMode flag, the series is treated as stacked.
This unexpectedly disabled the domain fitting due to the filling of dataseries values for stacked series.
To Reproduce
Steps to reproduce the behavior:
- Go to https://codesandbox.io/s/empty-pond-lfn4t2
- Toggle
enableHistogramMode option
- Notice how the domain
fit is applied in each case
Expected behaviour
Domain fit should not be impacted by whether the enableHistogramMode flag is enabled or not.
Version (please complete the following information):
Additional context
This issues was introduced in #751 by treating any bar series with enableHistogramMode set to true as stacked. This was done to prevent clustered bar charts in a histogram.
The solution here would be to only force the stacking behavior for histogram bar charts when there is more than one bar series.
Kibana Cross Issues
Checklist
Describe the issue
Whenever a user creates a bar series and enables the
enableHistogramModeflag, the series is treated as stacked.This unexpectedly disabled the domain fitting due to the filling of dataseries values for stacked series.
To Reproduce
Steps to reproduce the behavior:
enableHistogramModeoptionfitis applied in each caseExpected behaviour
Domain fit should not be impacted by whether the
enableHistogramModeflag is enabled or not.Version (please complete the following information):
v21.0.0Additional context
This issues was introduced in #751 by treating any bar series with
enableHistogramModeset totrueas stacked. This was done to prevent clustered bar charts in a histogram.The solution here would be to only force the stacking behavior for histogram bar charts when there is more than one bar series.
Kibana Cross Issues
Checklist
:xy,:partition):interactions,:axis)Kibana Cross Issueslist and thekibana cross issuetag is applied