You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/04/14 10:45:01 UTC

[GitHub] [echarts] MaddyCrowle opened a new issue, #16887: Default value disappears after mouseout

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

   ### Version
   
   5.3.0
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   ```
   chart.setOption({
           xAxis: {
             axisPointer: {
               value: 79,
               status: 'show',
             }
           }
         });
   ```
   
   ### Current Behavior
   
   When the chart just initialized there is vertical dashed line on xAxis with default displaying value 79, then if user put mouse cursor over it and then get out the mouse cursor of the chart, default value just disappear.
   
   ### Expected Behavior
   
   Default value stays visible after user get out the mouse cursor, as it initialized.
   
   ### Environment
   
   ```markdown
   - OS: Win 10
   - Browser: Firefox
   - Framework: Vue3
   ```
   
   
   ### Any additional comments?
   
   If this is not a bug but a feature is there any way to make the default value stays visible?


-- 
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] Default value disappears after mouseout [echarts]

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

   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


[GitHub] [echarts] MaddyCrowle commented on issue #16887: Default value disappears after mouseout

Posted by GitBox <gi...@apache.org>.
MaddyCrowle commented on issue #16887:
URL: https://github.com/apache/echarts/issues/16887#issuecomment-1106334156

   @jiawulin001 For example stock market. I need to display trend and show current price on it, hide displaying current price if user put mouse cursor on the chart, then display the current price again if user move mouse cursor out of the chart. Just like here: https://app.lyra.finance/trade/eth/call/833 What is the best way to implement it?


-- 
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] Default value disappears after mouseout [echarts]

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

   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


[GitHub] [echarts] MaddyCrowle commented on issue #16887: Default value disappears after mouseout

Posted by GitBox <gi...@apache.org>.
MaddyCrowle commented on issue #16887:
URL: https://github.com/apache/echarts/issues/16887#issuecomment-1107776702

   @jiawulin001 I see that label of markLine is binded to axisLabel. Is there any way to separate them? I need to display markLine label, but don't need to display axisLabel. Now if axisLabes is `show: false`, markLine label is not showing too..


-- 
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] jiawulin001 commented on issue #16887: Default value disappears after mouseout

Posted by GitBox <gi...@apache.org>.
jiawulin001 commented on issue #16887:
URL: https://github.com/apache/echarts/issues/16887#issuecomment-1107676707

   @MaddyCrowle Try mouse event (here)[https://echarts.apache.org/en/api.html#events.Mouse%20events]. I would suggest using 'globalout' and 'mousemove' to deactivate and activate the tooltip. Take the sample as reference.
   <details>
   <summary>Code Sample</summary>
   
   ```
   option = {
     xAxis: {
       type: 'category',
       data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     },
     yAxis: {
       type: 'value'
     },
     series: [
       {
         data: [120, 200, 150, 80, 70, 110, 130],
         type: 'bar'
       }
     ]
   };
   myChart.on('globalout', function(params) {
     myChart.setOption({
       xAxis:{
         data: ['a','b','c','d','e','f','g',]
       }
     })
   });
   myChart.on('mousemove', function(params) {
     myChart.setOption({
       xAxis:{
         data: ['h','i','j','k','l','m','n',]
       }
     })
   });
   ```
   </details>


-- 
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] jiawulin001 commented on issue #16887: Default value disappears after mouseout

Posted by GitBox <gi...@apache.org>.
jiawulin001 commented on issue #16887:
URL: https://github.com/apache/echarts/issues/16887#issuecomment-1099782306

   Hi, since your issue has no context at all, I cannot figuire out in what situation would that happen. My general suggestion would be that if you want to mark a line on chart, you can use `markLine`. You can refer to https://echarts.apache.org/zh/option.html#series-line.markLine for more info.


-- 
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] Default value disappears after mouseout [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #16887: Default value disappears after mouseout
URL: https://github.com/apache/echarts/issues/16887


-- 
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] jiawulin001 commented on issue #16887: Default value disappears after mouseout

Posted by GitBox <gi...@apache.org>.
jiawulin001 commented on issue #16887:
URL: https://github.com/apache/echarts/issues/16887#issuecomment-1107787926

   I don't think they are bound. Label of `markLine` is correctly shown for me when I disable `axisLabel`.


-- 
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] MaddyCrowle commented on issue #16887: Default value disappears after mouseout

Posted by GitBox <gi...@apache.org>.
MaddyCrowle commented on issue #16887:
URL: https://github.com/apache/echarts/issues/16887#issuecomment-1107798818

   @jiawulin001 yeah, I see, I think it was problem in my code. Supposed we can close this topic. Thanks a lot.


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