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