Skip to content

fix(BarSeries): forced stacking for single series histogram#2226

Closed
nickofthyme wants to merge 1 commit intoelastic:mainfrom
nickofthyme:fix-histogram-domain
Closed

fix(BarSeries): forced stacking for single series histogram#2226
nickofthyme wants to merge 1 commit intoelastic:mainfrom
nickofthyme:fix-histogram-domain

Conversation

@nickofthyme
Copy link
Copy Markdown
Collaborator

Summary

This PR was the first solution designed to fix #2223 however after more thought, this would solve one breaking behavior but not all. Namely, this would not solve the case where the user has multiple histogram bar series in a chart and wants to fit the domain to the data. This would force the bars to be stacked, against the chart config, and make domain fitting impossible.

Before

Screen Recording 2023-11-01 at 09 51 39 AM

After

Screen Recording 2023-11-01 at 02 39 54 PM

Notice, when there are 2 bar series in the chart with enableHistogramMode set to true they are forced to stack and the domain fitting is set to start at 0.

@nickofthyme nickofthyme added :data Data/series/scales related issue :xy Bar/Line/Area chart related labels Nov 1, 2023
@nickofthyme
Copy link
Copy Markdown
Collaborator Author

Closed in favor of #2225

@nickofthyme nickofthyme closed this Nov 1, 2023
@nickofthyme nickofthyme deleted the fix-histogram-domain branch November 1, 2023 23:36
@elastic-datavis
Copy link
Copy Markdown
Contributor

⏳ Pending Deployment - b9487fb

  • ⏳ Storybook
  • ⏳ e2e server
  • ⏳ Playwright report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:data Data/series/scales related issue :xy Bar/Line/Area chart related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do not force stacking on single histogram series

1 participant