当鼠标结束时amcharts气球可见性?

时间:2014-04-07 12:56:00

标签: javascript plugins mouse visible balloon

当鼠标悬停在它上面时,如何使amcharts气球可见?以下是关于气球http://docs.amcharts.com/2/javascriptcharts/AmBalloon

的文档

1 个答案:

答案 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>";