Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何更改 AMCharts 小部件中的图例标签? 我知道我可以使用它们的 labelFunction() 更改类别轴标签,有没有办法对图例做同样的事情?
把这个函数放在 JSOn data received事件中就可以了!
On data received
function(context, data, $box) { data.underlying.axes[0].caption[0] = textPreviousYear; data.underlying.axes[0].caption[2] = textPeriod; return data; }
不确定这是最好的方法,但它确实有效。