You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "gioneves (via GitHub)" <gi...@apache.org> on 2024/12/28 19:03:02 UTC
[I] [Bug] How to synchronize two or more graphics with converFromPixel in same echarts.instance? [echarts]
gioneves opened a new issue, #20628:
URL: https://github.com/apache/echarts/issues/20628
### Version
5.5.0
### Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor?code=MYewdgzgLgBMAWBDATlAygT2gUwLYwF4YAKASkID4YBvAKBjnGhgBMAzASTAEtYizKNeg0aRYAc2QgArgAcIhGAG0A5JJmyAjCoA0MNVLkAmXfvVyAzCoC6AblrCGoMa0RREipXYciYbEMgkADbYsNyKAAy2MOEAPDAWUTEA1MnkdL4MLG6IAHSy0hDwxEqOmcQAsm7wuciIYCwguAIAVDCaEZrkAD4wETplvpXVtfWNzeRtHV0wvf2DIubySsNQNXUNTa0wSxC5IWDiaz191gvWpPa-AL5lyKHSyGCu7lcw1_bC91CPzxkiEBkyGA2AAXEJMn5uMhoOD2FxeGQyrcGB9aGjaAB6TEwCDYBq0EKwApBIIAERyeL4ym8tGczAQKHQ-JYigEBCo_3psGoUJhsGuikZqEwOAmuUBjxBnwYJPJlNC-UKxX-DElwLBylUAA9tHoVNqTPrdjY9LlzWxodAzqjLujPsLmQ0yJ82NIwMAoNxwHAkKgAGJ1XDYNAAd14CAiAi5TFgXqgIQinjKqpEUGw2qg4JUzgAbtgA1JcAAFbja7BBGLPCCIYNV6D1EEkR0AVTxpF0CxCbCz-hBYHTyE7kPTmbQUAwIXBqd8_gHaG4AC9NYkBpCnCAggFswBiIwAFiMAA4LCYFiiRBfaRuXFAQJuvbIk0RU1BkNxxOIC9nENruBBhxEX9_2LEBuAHb8IUyIJwJDCcpygyFQC3ZBdwidCVHPZFhAxG9mEkbgWGfZQUy7bAe2zABWABSQDfDvWRs00IxaLXTJwxYNZs33CJWIWeBsA_eBexUCwaMwm42IYGcYHfcRhKoviRxARj9GYpT2MIrj9B4jTfAEoSRLE2js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mouse (mousemove) over one of them and pass the tooltip effect to the other. That is, when I move the mouse over series[0], the tooltip must also appear in series[1] and vice versa. I tried synchronizing the charts with chartUSe.getZr().on(...) but I couldn't get it to work. Also, **it wouldn't be interesting to use echarts.connect to do this, as I need the charts to be in the same instance**.
### Current Behavior
The tooltip is not transferred to the other charts as it naturally is with `echarts.connect`.
### Expected Behavior
The tooltip needs to work on all the graphics programmed for the tooltip action to take place, so if I hover over the first graphic, the tooltip should appear at the same point (axis) as the second and vice versa. Note that all graphs must have the same scale axis.
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] How to synchronize two or more graphics with converFromPixel in same echarts.instance? [echarts]
Posted by "gioneves (via GitHub)" <gi...@apache.org>.
gioneves commented on issue #20628:
URL: https://github.com/apache/echarts/issues/20628#issuecomment-2564654957
How can I make two tooltips (or more) appear in the same instance? Is there a hack to make this work? Or would it be more appropriate to recommend a new feature with this possibility in `axisPointer`, something like:
`link: [ { xAxisIndex: [0, 1, ..., 2], multipleTooltips: true } ]`
For behavior similar to `echarts.connect`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] How to synchronize two or more graphics with converFromPixel in same echarts.instance? [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20628:
URL: https://github.com/apache/echarts/issues/20628#issuecomment-2564591593
I do not think this is a bug. Two series in a **single** chart have a **single** tooltip activated on _mousemove_ by default.
Event _mousemove_ has precedence over action _showTip_. So once a tooltip is activated in one series, _showTip_ will not work in the other because only one tooltip is allowed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] How to synchronize two or more graphics with convertFromPixel in same echarts.instance? [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20628:
URL: https://github.com/apache/echarts/issues/20628#issuecomment-2564843776
Changing the tooltip present state is a lost cause IMHO. One would rather focus on [data.label](https://echarts.apache.org/en/option.html#series-scatter.data.label). Multiple labels could be turned on/off with _setOption_, on any series.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org