You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "isazulay (via GitHub)" <gi...@apache.org> on 2023/05/05 14:31:34 UTC

[GitHub] [echarts] isazulay opened a new issue, #18595: [Bug] Chart not hiding axisPointer when programmatically hiding tooltip

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

   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://codepen.io/isazulay/pen/wvYppNN
   
   ### Steps to Reproduce
   
   1. Wait 2 seconds: a tooltip automatically pops up on the second datapoint and the `axisPointer` is being shown for this datapoint
   2. Wait 2 seconds: the tooltip automatically hides
   
   ### Current Behavior
   
   The `axisPointer` remains visible after the tooltip is hidden.
   
   ### Expected Behavior
   
   The `axisPointer` is also hidden after dispatching the `hideTip` action, since the `showTip` action is triggering it to show.
   
   ### Environment
   
   ```markdown
   - OS: MacOS Ventura
   - Browser: Chrome 112.0.5615.137
   - Framework: Vue@3
   ```
   
   
   ### Any additional comments?
   
   I was trying to get a tooltip to show on a different graph on the same page when hovering over another graph. Showing and hiding was no problem, but it was just the axisPointer that stayed visible that is preventing us from implementing this.


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


[GitHub] [echarts] helgasoft commented on issue #18595: [Bug] Chart not hiding axisPointer when programmatically hiding tooltip

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

   workaround by replacing the chart
   ```
       setTimeout(() => {
         myChart.dispatchAction({ type: 'hideTip' });
         myChart.dispatchAction({ type: 'downplay' });
         myChart.setOption(option, true);
       }, 2000)
   ```


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


[GitHub] [echarts] isazulay commented on issue #18595: [Bug] Chart not hiding axisPointer when programmatically hiding tooltip

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

   @helgasoft thanks! I also got quite a well working workaround from stackoverflow where replacing the graph is not needed:
   
   ```
   myChart.dispatchAction({
       type: 'hideTip'
   });
   myChart.dispatchAction({
       type: 'showTip',
       seriesIndex: 0,
       dataIndex: -1
   });
   ```
   https://stackoverflow.com/questions/76183021/apache-echarts-not-hiding-axis-pointer-when-programmatically-hiding-tooltip


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


[GitHub] [echarts] helgasoft commented on issue #18595: [Bug] Chart not hiding axisPointer when programmatically hiding tooltip

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

   ok, good one!
   Surprising, this bug has been around since **2017** (#7303, #8892), probably a longevity record.


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