IcCube,如何在AMChart小部件中更改图例标签?

时间:2018-09-24 15:13:22

标签: amcharts iccube-reporting

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

enter image description here

1 个答案:

答案 0 :(得分:2)

在JS On data received事件中添加此功能就可以了!

function(context, data, $box) {

    data.underlying.axes[0].caption[0] = textPreviousYear;
    data.underlying.axes[0].caption[2] = textPeriod;

    return data;
}

不确定这是最好的进行方法,但是可以。