-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: decouple tooltip from XY chart #553
Merged
markov00
merged 18 commits into
elastic:master
from
markov00:2020_02_13-decouple_tooltip
Feb 20, 2020
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e8814e1
chore: remove unused interface
markov00 f3680e3
chore: remove unused interfaces
markov00 4344c73
chore: move tooltips component to global folder
markov00 f56a0d3
chore: remove unused TooltipProps type
markov00 58def88
refactor: generalize SeriesIdentifier
markov00 4a8c218
refactor(legend): rename displayValue to extra
markov00 0c979eb
refactor(tooltip): remove isXValue prop from TooltipValue
markov00 2fa3fb0
refactor: update TooltipValue type with decoupled names
markov00 7c2d964
refactor: decoupled tooltipHeaderFormatter selector
markov00 0fd0042
refactor: move annotation vis check inside tooltip vis check
markov00 6f34ca7
refactor: move TooltipData type near to Tooltip component
markov00 126532b
refactor: move isTooltipVisible to internal state
markov00 ad1033a
refactor: cleanup TooltipStateProps
markov00 e39fa4e
refactor: move getTooltipValues in the internal state
markov00 75448c8
refactor: decouple tooltip anchor position
markov00 e1197ae
fix: rotated tooltip position
markov00 ebb0637
refactor(legend): showLegendExtra to false by default
markov00 886c636
Merge branch 'master' into 2020_02_13-decouple_tooltip
markov00 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we pick
name
orlabel
to be consistent? I am having trouble choosing between the two. If we are going to have a name prop where this value is derived from, this should bename
notlabel
right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean the
name
prop of the Series component?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, this values is determined from the
customSeriesLabel
, soon to bename
prop.#539 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok let me switch to
name
thenThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from our yesterday call, we will keep the
label
naming to make the tooltip a bit more abstract from the series. The Label should refer to the descriptive part of the value