You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "rauki (via GitHub)" <gi...@apache.org> on 2023/09/06 09:54:35 UTC
[GitHub] [echarts] rauki commented on issue #19089: [Bug] series.tooltip 仅在 tooltip.trigger 为 'item' 时有效。
rauki commented on issue #19089:
URL: https://github.com/apache/echarts/issues/19089#issuecomment-1708032554
https://echarts.apache.org/examples/zh/editor.html?c=mix-line-bar
In the previous example, when tooltip.trigger = 'axis', modifying series.tooltip is effective. But in the documentation (https://echarts.apache.org/zh/option.html#series-bar.tooltip), there is the following note: series.tooltip is only valid when tooltip.trigger is 'item'. Is there any conflict between the two?
> @rauki It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
>
> TRANSLATED
>
> **TITLE**
>
> [Bug] series.tooltip is only valid if tooltip.trigger is 'item'.
>
> **BODY**
>
> ### Version
> 5.4.3
>
> ### Link to Minimal Reproduction
> https://echarts.apache.org/examples/zh/editor.html?c=mix-line-bar
>
> ### Steps to Reproduce
> Official legend: https://echarts.apache.org/examples/zh/editor.html?c=mix-line-bar Modify series[0].tooltip: { valueFormatter: function (value) { return value + 'ml'; } }, the tooltip in the legend has been modified
>
> ### Current Behavior
> In the official legend above, tooltip.trigger = 'axis', and series.tooltip can be configured to modify the tooltip text on the histogram. In the document https://echarts.apache.org/zh/option.html#series-bar.tooltip, there are the following notes: Note: series.tooltip is only available in [tooltip.trigger](https://echarts.apache. org/zh/option.html#tooltip.trigger) is valid when 'item'. Is there any conflict between the two. When tooltip.trigger = 'axis' in my own project, the configured series.tooltip cannot take effect
>
> ### Expected Behavior
> When tooltip.trigger = 'axis', You can customize and modify the series.tooltip copywriting
>
> ### Environment
> ```
> - OS:
> -Browser:
> - Framework:
> ```
>
> ### Any additional comments?
> _No response_
https://echarts.apache.org/examples/zh/editor.html?c=mix-line-bar
In the previous example, when tooltip.trigger = 'axis', modifying series.tooltip is effective. But in the documentation (https://echarts.apache.org/zh/option.html#series-bar.tooltip), there is the following note: series.tooltip is only valid when tooltip.trigger is 'item'. Is there any conflict between the two?
--
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