echarts [Bug] 类目是俄语时,tooltip自定义formatter,name和value位置顺序反了

jm81lzqq  于 2022-10-20  发布在  Echarts
关注(0)|答案(2)|浏览(281)

Version

5+

  • No response*

Steps to Reproduce

1.官方示例'基础柱状图',
2.修改tooltip,formatter自定义显示
3.其中一个类型修改为俄语

Current Behavior

俄语,波斯语时自定义tooltip二者顺序相反

Expected Behavior

与其它语言例如中文,英文表现一致

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

  • No response*
ss2ws0br

ss2ws0br1#

@anyanyan07 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] When the category is Russian, the tooltip custom formatter, name and value positions are reversed

BODY

Version

5+

  • No response*

Steps to Reproduce

  1. Official example 'Base histogram',
  2. Modify tooltip, formatter to customize the display
  3. One of the types is modified to Russian

Current Behavior

Russian, Persian when custom tooltip both in reverse order

Expected Behavior

Consistent with other languages such as Chinese, English is consistent

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

  • No response*
bfhwhh0e

bfhwhh0e2#

你自定义了 tooltip 的 formatter 并且返回了 HTML 字符串,这看起来是 HTML 的渲染行为,并不是 ECharts 能决定的。有些语言习惯可能是 rtl,浏览器会自动调整文字顺序。

相关问题