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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
