fix(tooltip): placement with left/top legends and single bars#771
fix(tooltip): placement with left/top legends and single bars#771nickofthyme merged 9 commits intoelastic:masterfrom
Conversation
|
Hey @nickofthyme why the tooltip behavior of a single bar histogram is different than the stacked bar one? |
|
We are going to integrate soon the small multiples, which means that the tooltip has to work over different areas independently from the legend position or its own panel. Is there a way to fix this without coupling this with the legend size? can we constraint the tooltip anchor to the chart panel only? Looking at the |
markov00
left a comment
There was a problem hiding this comment.
Thanks for the legend size decouping, I've just one minor thing to ask about renaming:
can the globalChartDimension be renamed to globalOffset or only offset?
For everything else is good to merge after fixing the snapshot test
# [21.0.0](v20.0.2...v21.0.0) (2020-08-10) ### Bug Fixes * update dep vulnerabilities, minimist and kind-of ([#763](#763)) ([4455281](4455281)) * **legend:** fix color anchor, add action context, fix action padding ([#774](#774)) ([4590a22](4590a22)) * **tooltip:** placement with left/top legends and single bars ([#771](#771)) ([e576b26](e576b26)), closes [#769](#769) [#770](#770) ### Features * streamgraph and fit functions on stacked charts ([#751](#751)) ([268fcc0](268fcc0)), closes [#766](#766) [#715](#715) [#450](#450) ### BREAKING CHANGES * the first parameter of `PointStyleAccessor` and `BarStyleAccessor` callbacks is changed from `RawDataSeriesDatum` to `DataSeriesDatum`. `stackAsPercentage` prop is replaced by `stackMode` that accept one `StackMode`.
|
🎉 This PR is included in version 21.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [21.0.0](elastic/elastic-charts@v20.0.2...v21.0.0) (2020-08-10) ### Bug Fixes * update dep vulnerabilities, minimist and kind-of ([opensearch-project#763](elastic/elastic-charts#763)) ([843554f](elastic/elastic-charts@843554f)) * **legend:** fix color anchor, add action context, fix action padding ([opensearch-project#774](elastic/elastic-charts#774)) ([262f8d2](elastic/elastic-charts@262f8d2)) * **tooltip:** placement with left/top legends and single bars ([opensearch-project#771](elastic/elastic-charts#771)) ([75533b1](elastic/elastic-charts@75533b1)), closes [opensearch-project#769](elastic/elastic-charts#769) [opensearch-project#770](elastic/elastic-charts#770) ### Features * streamgraph and fit functions on stacked charts ([opensearch-project#751](elastic/elastic-charts#751)) ([6f6a8cb](elastic/elastic-charts@6f6a8cb)), closes [opensearch-project#766](elastic/elastic-charts#766) [opensearch-project#715](elastic/elastic-charts#715) [opensearch-project#450](elastic/elastic-charts#450) ### BREAKING CHANGES * the first parameter of `PointStyleAccessor` and `BarStyleAccessor` callbacks is changed from `RawDataSeriesDatum` to `DataSeriesDatum`. `stackAsPercentage` prop is replaced by `stackMode` that accept one `StackMode`.

Summary
Fixes #769 and #770
Related to #259
LeftandTopLegend (#769)Before
After
Single value bars (#770)
Reverses changes from #259 in favor of new popperjs changes that allow greater tooltip customization.
Before
After
Checklist
src/index.ts(and stories only import from../srcexcept for test data & storybook)