0
我正在使用AmCharts创建折线图。所以我试图从我的mysql数据库分配数据到图表,我使用它。在AmCharts中显示来自mysql的数据
AmCharts.makeChart("chartdiv", {
"type": "serial",
"dataLoader": {
"url": "data.php",
"format": "json"
},
// we'll skip the rest of the config for now //
});
data.php文件有PHP脚本连接到MySQL服务器,加载数据并以JSON格式输出数据。
但我不能(使用后ID)
请正确格式化代码。缺少引号.. –
AmCharts.makeChart(“chartdiv”,{ “type”:“serial”, “dataLoader”:{ “url”:“data.php”, “format”:“json” }, //我们现在跳过配置的其余部分 // .. }); – sami