【问题标题】:Is it possible to have HTML in a tooltip in amcharts 5是否可以在 amcharts 5 的工具提示中使用 HTML
【发布时间】:2022-12-13 02:06:58
【问题描述】:

我想在amcharts5 中添加指向工具提示的链接。我在版本 4 中看到了使用 tooltipHTML 的文档,但是如果这在 amcharts5 中可行的话,文档中都没有提及。使用 tooltipHTML 似乎不起作用。

【问题讨论】:

标签: amcharts amcharts5


【解决方案1】:

是的,见their documentation.

series.columns.template.setAll({
  tooltipHTML: "<strong>{categoryX}</strong>: {valueY}"
});

Here's 一个例子。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多