-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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
feat(radar): Radar series tooltip support dimensionIndex #20677
base: master
Are you sure you want to change the base?
Conversation
Thanks for your contribution! |
Please don't use forced pushes because it makes it hard to trace the data changes. |
Oh, I just force write my init uncompleted commit, will not force push further. |
@Ovilia Hello, please review my code, thx |
The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-20677@460fe5e |
Any progress on this PR? |
@plainheart @100pah Does anyone can review my PR? Thanks a lot 🙏 |
One month later, anyone can help? |
Did I miss something? |
Does the code need any changes? |
Thanks for the contribution and sorry for the late reply. I'll review it now. 😄 |
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.
Consider adding a overwriting getDataParams
in RadarSeries as FunnelSeries does now.
@@ -88,6 +90,7 @@ export class DataFormatMixin { | |||
color: color, | |||
borderColor: borderColor, | |||
dimensionNames: userOutput ? userOutput.fullDimensions : null, | |||
dimensionIndex: el ? el.__dimIdx : null, |
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.
dimensionIndex
is only for radar series, so it should not be included here.
/** | ||
* From RadarSymbol | ||
*/ | ||
__dimIdx?: number; |
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.
__dimIdx
is only for radar series, so it should not be included here.
I think this should be a great feature to introduce in ECharts 6.0. Please let me know if you need further help on this. I will check this PR regularly in case I miss anything more. Thanks! |
Should this be called |
Brief Information
This pull request is in the type of:
What does this PR do?
Just add
dimensionIndex
into radar chart series tooltip's callback param.Fixed issues
#10537
Details
Before: What was the problem?
I just wanna get which axis my cursor is point on. In this example, I wanna get "小明"
After: How does it behave after the fixing?
In radar chart, when cursor point at series symbol area, tooltip callback's params will contain
dimensionIndex
, which indicate which axis you just pointed.Document Info
One of the following should be checked.
Misc
ZRender Changes
Related test cases or examples to use the new APIs
N.A.
Others
Merging options
Other information