-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ref(echart-tooltip): Add indent hack #29077
Conversation
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.
Rather then rely on modifying the seriesName and using a string hack, I think instead you should just build an object for additional tooltip options for each series name, then pass that to your chart in the tooltip
param -> that gets passed as props to Tooltip -> you can use that inside the formatter.
0707963
to
febf139
Compare
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.
Looks good to me. Using the series names to indent is a simple interface, and preferrable to using series indexes imo.
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.
Yeah, this looks better 👍
febf139
to
316a289
Compare
size-limit report
|
used in https://github.com/getsentry/getsentry/pull/6397