You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Bekaxp (via GitHub)" <gi...@apache.org> on 2023/10/27 22:44:32 UTC

[I] [Bug] Tooltip showing wrong value off chart [echarts]

Bekaxp opened a new issue, #19253:
URL: https://github.com/apache/echarts/issues/19253

   ### Version
   
   5.4.3
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?c=line-gradient&code=MYewdgzgLgBAJgQygmBeGBtAUDTByAJgAYSBaIgNnIFY8AaGARkYoF06d9izLyL6mBAJztOGQiSJ9yAdgGMAzNVG5x3KbyIAOAVrYdVEnlSJCBMhSq6TpjIruUHrx0s3OWnam70YEBFLSsvF0UBIQIgow0qRgAWeQUiSPVbWgYCWMcxKNt-BkURTxyfOXzGLMMUnx0yxmTvGLMGRMLsqqpiAWJ9NobSAkYEmXqXAj98gkCi9v6FBxHo_viGIViF6QI0mBk66b6CPKZKdd4CUpgtNb3RmpghD17RpouK50XE9xOZckGGLQfKt5vkRxoJXsENMC5vkiMNrpDyMsLhF4bIaAJYldHgjKOYUdi0bD5MdUbDyLc7HCCWTTP4eoCeN87GFdtSmb87viGQjfPJFF9XNCjlTuWi4glWaKyeU-ZK3mLDhQsVKmecKK0Va5blopmzXM8ZCL5WTOn8AcbvgNZQKxgJqEaIWiCELqODipakRQklhWABuLBYEAABygAEtwGgYABvThhqAAGwApgAuaOcXBJgBmUFTeGAibAUETACd6OmYEWAB45mB4ADixYQcFDBdgCHj4AA5hWABaJmAATxgCEroYgeE4AF8nFAQCB42Gg6mY7hcFBi6HO52S7mR2OJ7hp5xEMgIImayvVxAQABXYv51MnhAAOgAtgggwAKT8YE-JhgAG7tjeiasAAlGgAB8MCflG8BIP-MBAfGIEwJOYFgU4uDNq-BYQOGkCpuIf4CHgyEgXgrBTk4lYAIKjhAy7llAA5BimtZhrhZarjAr6hmAuZVIwPwHmhTgDvRY7LkeuBnhuiaMZg5aXjxLFsbm8b8Ym3E8TAEA9iAADuADKA6vgARvOqaZu2Z5YauOF4QRinEQhpHkdpVE8ZOnBUZOvpAA
   
   ### Steps to Reproduce
   
   Use the attached minimal reproduction link or click [here](https://echarts.apache.org/examples/en/editor.html?c=line-gradient&code=MYewdgzgLgBAJgQygmBeGBtAUDTByAJgAYSBaIgNnIFY8AaGARkYoF06d9izLyL6mBAJztOGQiSJ9yAdgGMAzNVG5x3KbyIAOAVrYdVEnlSJCBMhSq6TpjIruUHrx0s3OWnam70YEBFLSsvF0UBIQIgow0qRgAWeQUiSPVbWgYCWMcxKNt-BkURTxyfOXzGLMMUnx0yxmTvGLMGRMLsqqpiAWJ9NobSAkYEmXqXAj98gkCi9v6FBxHo_viGIViF6QI0mBk66b6CPKZKdd4CUpgtNb3RmpghD17RpouK50XE9xOZckGGLQfKt5vkRxoJXsENMC5vkiMNrpDyMsLhF4bIaAJYldHgjKOYUdi0bD5MdUbDyLc7HCCWTTP4eoCeN87GFdtSmb87viGQjfPJFF9XNCjlTuWi4glWaKyeU-ZK3mLDhQsVKmecKK0Va5blopmzXM8ZCL5WTOn8AcbvgNZQKxgJqEaIWiCELqODipakRQklhWABuLBYEAABygAEtwGgYABvThhqAAGwApgAuaOcXBJgBmUFTeGAibAUETACd6OmYEWAB45mB4ADixYQcFDBdgCHj4AA5hWABaJmAATxgCEroYgeE4AF8nFAQCB42Gg6mY7hcFBi6HO52S7mR2OJ7hp5xEMgIImayvVxAQABXYv51MnhAAOgAtgggwAKT8YE-JhgAG7tjeiasAAlGgAB8MCflG8BIP-MBAfGIEwJOYFgU4uDNq-BYQOGkCpuIf4CHgyEgXgrBTk4lYAIKjhAy7llAA5BimtZhrhZarjAr6hmAuZVIwPwHmhTgDvRY7LkeuBnhuiaMZg5aXjxLFsbm8b8Ym3E8TAEA9iAADuADKA6vgARv
 OqaZu2Z5YauOF4QRinEQhpHkdpVE8ZOnBUZOvpAA).
   
   1. Go with the mouse over the chart, you will see the tooltip with proper information for the hovered date (e.g. on 2000-06-07 the date value is 135. Thats expected and works nicely.
   2. Now move the mouse over to the right where there are no data points anymore. You will notice that the tooltip, no matter of the position off chart will always show the data of the first entry point of the chart (e.g. 2000-06-05 with the date value of 116.
   
   ### Current Behavior
   
   Following the steps above to reproduce the issue I can see that the tooltip when I have the cursor of the mouse off chart is always showing the first data point of the chart.
   
   Here is also a video of the issue:
   
   https://github.com/apache/echarts/assets/13329079/4e841e06-7694-4d92-8ddf-6c174db7fff6
   
   
   
   ### Expected Behavior
   
   I would expect that the tooltip is shown with the correct information only when I am hovering the chart where we have proper data points and that the tooltip disappears when is off chart. It would be also acceptable if the tooltip would still be shown but with information about the data at that hovered point (e.g. no data or something).
   
   ### Environment
   
   ```markdown
   - OS: macOS 14
   - Browser: Chrome Version 117.0.5938.92
   ```
   
   
   ### Any additional comments?
   
   - Maybe this behaviour is intentional by the library by default? 
   - Is there any option that we can use to achieve what is described above? 


-- 
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] Tooltip showing wrong value off chart [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19253:
URL: https://github.com/apache/echarts/issues/19253#issuecomment-1784197072

   not-a-bug
   That's default behavior for ```tooltip.trigger: 'axis'```
   Change to ```trigger: 'item'``` and ```showSymbol: true```, OR remove _xAxis.min_


-- 
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] Tooltip showing wrong value off chart [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19253: [Bug] Tooltip showing wrong value off chart
URL: https://github.com/apache/echarts/issues/19253


-- 
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] Tooltip showing wrong value off chart [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19253:
URL: https://github.com/apache/echarts/issues/19253#issuecomment-3493447675

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


-- 
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] Tooltip showing wrong value off chart [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19253:
URL: https://github.com/apache/echarts/issues/19253#issuecomment-3464029194

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


-- 
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] Tooltip showing wrong value off chart [echarts]

Posted by "Bekaxp (via GitHub)" <gi...@apache.org>.
Bekaxp commented on issue #19253:
URL: https://github.com/apache/echarts/issues/19253#issuecomment-1784226230

   Thank you for your answer. I will rephrase my question then:
   Is there any way to achieve the behaviour I explained above "as a bug"?
   
   The options you mentioned are removing the tooltip altogether, also on the points where there is actual data, we don't want that. And if I remove the xAxis.min is also not what we want to achieve as imagine that the user selects a range of dates and maybe there are some dates in the past where there were no data points.
   
   We would like the tooltip to behave the same except when moving on the area where there are no data points, there it should disappear or show that the value is 0.
   
   Thanks again for any tips and tricks :) 


-- 
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