You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "jonoshearman (via GitHub)" <gi...@apache.org> on 2024/07/23 01:05:19 UTC

[I] [Bug] Chart.grid.tooltip.formatter does not appear to activate if chart.tooltip.trigger = 'none' [echarts]

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

   ### Version
   
   5.5.1
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsDmAnCATAXMmurGMMADaQiGoklg4YYCmWhA5AIYAeEAzhwA0xegDNgWALZcwYNoQAUILli5T-ASgQA-WB2x4AKi35hho2AF8R9AEbA5wKZwCsrgKQX0N4jwCCfPy0lmAAniAsnADGsiwYkmHeJLiyXIQA2hwAsjDC-kYAriz5HADqLLilRgAWhaUAYjilAMqyrYXQHAC6xL7oYYECIfThkZwAblwUxRx9tqTkVBA0dAxMrOz60DAl88T8bBCmmZZr9Klg6bAZAIyuAAxCsABMAMxPry8ALM8vtwAOZ63N6uYHfADsfwAbA9ugtRhEovoKBBoHt6P0SOcSNB1MiODsjEtqMkLmlMjj6HipATdmT6LApjNkbcnpYfAjsRzcfjOGAAO7ABn0ZnFQgvdmM6xCKm82n8mpYFglLmi6bi2AfNUyuXoGkEiSFLAikhi5HfKWMqzwnljAkgY6msg0fTuLw6igsMRgNyeBlY9Byg2cAUQMA1YmUUk6sjRlYjaWkDYKfThlhSU3oCTSWTyLbKVTqLS6fSHHCmExmU2BlIUm562Ah_T0nXoc2ENk62tBnn6vn6QXCttMjXIyXd2V9psDjgR5Wq6cdrVWzFTpMzhX6I0mkfLy3d23S-2cR2L4-gP0enlMGq-t3-rlWYi9KwAbiAA
   
   ### Steps to Reproduce
   
   I was creating a simple multi-chart with a grid and a pie chart and noticed that grid.tooltip and series.tooltip cannot create tooltips by themselves. the global tooltip key must be set, even with an empty object {}
   
   My expectation was that I could set separate tooltip configs on each component as needed. However it seems they are just for override the global tooltip config.
   
   In trying to set up the grid tooltip in the example, I set up global tooltips to `trigger: 'none'` which worked to disable the pieChart but the `grid.tooltip.formatter` parameter is ignored, while the `grid.tooltip.trigger` parameter is successful.
   
   Maybe I do not correctly understand the purpose of `trigger: 'none'` ?
   It appears to disable more options than just trigger.
   
   this does not happen for `chart.series.tooltip.formatter` - it is correctly used even if `chart.tooltip.trigger` is 'none'
   
   ### Current Behavior
   
   `chart.grid.tooltip.formatter` is ignored when `chart.tooltip.trigger` is set to 'none'
   
   ### Expected Behavior
   
   `chart.grid.tooltip.formatter` should work and override the global tooltip settings just like if `chart.tooltip.trigger` is set to 'item' or 'axis'
   
   ### Environment
   
   ```markdown
   - OS: Linux
   - Browser: Chrome
   - Framework: none
   ```
   
   
   ### Any additional comments?
   
   A separate question - why does the global `chart.tooltip` always need to be set if overrides are possible?
   I would have assumed that each component could have it's own tooltip setup.
   
   Also - I am aware that a workaround to this is to set chart.tooltip to `{}` and set the first pieSeries.tooltip to `{trigger: 'none'}`
   
   I just wanted to flag the issue with grid.tooltip.formatter.


-- 
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] Chart.grid.tooltip.formatter does not appear to activate if chart.tooltip.trigger = 'none' [echarts]

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

   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] Chart.grid.tooltip.formatter does not appear to activate if chart.tooltip.trigger = 'none' [echarts]

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

   current:
   ![image](https://github.com/user-attachments/assets/a3fd088d-73c4-4a0f-a809-27ea14f20afa)
   
   expected:
   ![image](https://github.com/user-attachments/assets/dd0e5add-75a2-4bc5-9c7b-d8884645a138)
   
   compared to the minimal reproduction with `grid.tooltip.formatter` set to `(params) => 'gridTest'`


-- 
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] Chart.grid.tooltip.formatter does not appear to activate if chart.tooltip.trigger = 'none' [echarts]

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

   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] Chart.grid.tooltip.formatter does not appear to activate if chart.tooltip.trigger = 'none' [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #20186: [Bug] Chart.grid.tooltip.formatter does not appear to activate if chart.tooltip.trigger = 'none'
URL: https://github.com/apache/echarts/issues/20186


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