2017-02-20 81 views

回答

0

您可以使用addLabel

請檢查下面的代碼的示例:

chart.addListener("animationFinished", function (e) { 

    var columns = document.getElementsByClassName("amcharts-graph-AmGraph-1"); 
    var top = -64; 
    var distance = 89; 

    for (var i = 0, iLen = columns.length; i < iLen; i++) { 
     top += distance; 
     e.chart.addLabel(60, top, "Text"); 
    } 
});