标签:
We need extra info to show when moving cursor to point.
Javascipts:
formatter: function() { var rV = null; $.ajax({ dataType: "json", url: ‘getDetail.php?tester=‘+this.series.name, async: false, // this will stall the tooltip success: function(data){ rV = data.tester; } }); return rV; }
PHP:
<?php header("Content-type: text/json"); $items[‘tester‘]=$tester.‘ABCDEFG‘; print json_encode($items); ?>
Tip: How to use ajax to get extra info for tooltip
标签:
原文地址:http://www.cnblogs.com/binglong/p/4505799.html