xml页面
<?xml version="1.0" encoding="UTF-8"?>
<chart useRoundEdges="1" formatNumberScale="0" decimals="0"
showValues="0" yAxisName="Units" xAxisName="years年份" caption="Unit Sales"
palette="2">
<set value="462" label="2008" link="j-tryaa()"/>
<set value="857" label="2009" link="j-tryaa()"/>
<set value="671" label="2010" />
<set value="494" label="2011" />
<set value="761" label="2012" />
<set value="960" label="2013" />
</chart>
html页面
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="jquery.core.js"></script>
<script type="text/javascript" src="FusionCharts.js"></script>
<script type="text/javascript">
function tryaa()
{
alert("11");
}
$(function(){
var chart = new FusionCharts("charts/Column3D.swf", "ChartId", "470", "190", "0", "0");
chart.setDataURL("xml/text.xml");
chart.render("chart1")
})
</script>
</head>
<body>
<div id="chart1">
</div>
</body>
</html>
这么简单的例子为什么不好用呢,点柱子并没有想要的调用js方法,求大神们帮忙看看
------解决思路----------------------
你是不是用的免费版,按照官方说法,免费版的JAVASCRIPT API 是基础版的。
Free Paid
JavaScript APIs and Events Basic Advanced