【问题标题】:IcCube, How to change legend labels in an AMChart widget?IcCube,如何更改 AMChart 小部件中的图例标签?
【发布时间】:2018-09-24 15:13:22
【问题描述】:

如何更改 AMCharts 小部件中的图例标签?
我知道我可以使用它们的 labelFunction() 更改类别轴标签, 有没有办法对图例做同样的事情?

【问题讨论】:

    标签: amcharts iccube-reporting


    【解决方案1】:

    把这个函数放在 JS On data received 事件中就可以了!

    function(context, data, $box) {
    
        data.underlying.axes[0].caption[0] = textPreviousYear;
        data.underlying.axes[0].caption[2] = textPeriod;
    
        return data;
    }
    

    不确定这是最好的方法,但它确实有效。

    【讨论】:

    • 这有点小技巧,但它应该没有任何副作用
    猜你喜欢
    • 1970-01-01
    • 2019-10-22
    • 1970-01-01
    • 2015-04-01
    • 1970-01-01
    • 2011-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多