大家好,我正在对此FusionCharts进行评估,但我一直遇到障碍。我收到此错误,不确定为什么...熟悉FusionCharts的人吗?
我只是试图运行示例
<script src="../js/fusioncharts/FusionCharts.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
var myChart = new FusionCharts ( "../js/fusioncharts/Column3D.swf",
"myChartId", "400", "300", "0", "1" );
myChart.setJSONData( {
"chart":
{
"caption" : "Weekly Sales Summary" ,
"xAxisName" : "Week",
"yAxisName" : "Sales",
"numberPrefix" : "$"
},
"data" :
[
{ "label" : "Week 1", "value" : "14400" },
{ "label" : "Week 2", "value" : "19600" },
{ "label" : "Week 3", "value" : "24000" },
{ "label" : "Week 4", "value" : "15700" }
]
} );
myChart.render("div_view");
// -->
</script>
<div id="div_view">FusionCharts will load here!</div>
最佳答案
已修复.... FusionCharts将在此处加载!
必须在JS之前
关于javascript - FusionCharts-无法找到容器DOM元素,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11231514/