【发布时间】:2020-08-06 21:32:17
【问题描述】:
我按照这个例子用 AmCharts 构建一个仪表图:https://www.amcharts.com/demos/gauge-with-bands/
经过一些修改,我添加了一个新的 ClockHand 元素,如下图所示: In the gauge graph, I adde a second ClockHand (blue color) and try to add a ToolTip..
但是当我尝试使用这个工具提示时,它没有显示在正确的位置。我正在使用此代码:
var hand2 = chartdivGauge.hands.push(new am4charts.ClockHand());
hand2.innerRadius = am4core.percent(95);
hand2.radius = am4core.percent(100);
hand2.startWidth = 20;
hand2.pin.disabled = true;
hand2.value = 50;
hand2.fill = am4core.color('blue');
hand2.stroke = am4core.color('blue');
hand2.tooltipText = "AAA";
那么,我该如何解决呢?我怎样才能把这个工具提示放在正确的位置,靠近时钟。
谢谢!
【问题讨论】:
标签: javascript amcharts amcharts4