docs: fix filterSeriesInTooltip predicate#552
Conversation
Codecov Report
@@ Coverage Diff @@
## master #552 +/- ##
==========================================
+ Coverage 71.49% 71.49% +<.01%
==========================================
Files 208 208
Lines 6118 6119 +1
Branches 1169 1169
==========================================
+ Hits 4374 4375 +1
Misses 1727 1727
Partials 17 17
Continue to review full report at Codecov.
|
nickofthyme
left a comment
There was a problem hiding this comment.
LGTM, finally, has this day actually come where we remove all getXXXId??
Side note: I think we should have a react linting rule in place for string and boolean props, what do you think?
// bad
id={'bottom'}
// good
id="bottom"
// bad
showLegend={true}
// good
showLegend
nickofthyme
left a comment
There was a problem hiding this comment.
Can we also remove the function definitions and make this a breaking change with the tooltip logic? That would finish this once and for all.
elastic-charts/src/utils/ids.ts
Lines 1 to 17 in 2242fca
@nickofthyme Sure will do, I will open up a PR for this
@rshen91 do you want to include also this eslint rule on your PR? |
Summary
This PR fix a small bug on storybook (story
BarChart - 2y1g) where an example was using a wrong FilterPredicate on thefilterSeriesInTooltipprops.I've also took the opportunity of this PR to remove all the
getSpecIdandgetAxisIdcalls as they are no longer neededChecklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[ ] Any consumer-facing exports were added tosrc/index.ts(and stories only import from../srcexcept for test data & storybook)[ ] This was checked for cross-browser compatibility, including a check against IE11[ ] Unit tests were updated or added to match the most common scenarios