Hi Zhou yuan, If you wish to change the formatter of the tooltip, you can set series.tooltip.formatter [1] as a function like
formatter: function (params) { return params.value == 315 ? 'NW' : '...' } You can add console.log to understand params better. [1] https://echarts.apache.org/en/option.html#series-scatter.tooltip.formatter Thanks *Ovilia* On Thu, Dec 9, 2021 at 10:26 PM zhouyuan <zhouy...@163.com> wrote: > Hello, I encountered such a problem when using Echarts. After reading the > document and spending some time, I still haven't solved it. I hope you can > provide some ideas. > > > Attached is the screenshot. > > > Here is the problem description: > > This table shows the daily wind direction in a month, for example, 0 is no > wind, 45 is east wind, 315 is northwest wind, etc > > Now you want to display the wind direction directly. For example, if it is > 45, you want to display ne. If it is 315, you want to display NW instead of > numbers > > So where should I modify to achieve this effect? Check the documentation. > I added the formatter method in tooltip. The project has no effect. The > source code written by Vue > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org > For additional commands, e-mail: dev-h...@echarts.apache.org