当鼠标悬停在它上面时,如何使amcharts气球可见?以下是关于气球http://docs.amcharts.com/2/javascriptcharts/AmBalloon
的文档答案 0 :(得分:0)
例如,如果您使用列类型。默认情况下会显示气球。
var graph = new AmCharts.AmGraph();
graph.valueField = "visits"; //this is from my Json data
graph.type = "column"; //here is the type of graph
现在,如果您希望可以访问和修改气球对象
// here I modify the default outputted text
graph.balloonText = "[[category]]: <b>[[value]]</b>";