0
如果我.csv文件放在同一文件夾中dygraph-combined.js - 在/ var/WWW - 然後將圖形繪製,見下圖:Dygraph文件路徑
g = new Dygraph(
document.getElementById("graphdiv"),
"meterLogPercentageThreshold.csv", // path to .csv file
{
rollPeriod: 1,
showRoller: true,
fillGraph: false,
ylabel: 'Power (W/h)',
xlabel: 'Date and Time',
showRangeSelector: true,
colors: ['#00aa00']
}
);
但如果我指定了其他位置,然後圖表不繪製,請有人指出我在正確的方向?
???這不起作用,它是同一個文件,我知道我在做一些愚蠢的事情,只是不知道是什麼?
g = new Dygraph(
document.getElementById("graphdiv"),
"/media/Power/meterLogPercentageThreshold.csv", // path to .csv file
{
rollPeriod: 1,
showRoller: true,
fillGraph: false,
ylabel: 'Power (W/h)',
xlabel: 'Date and Time',
showRangeSelector: true,
colors: ['#00aa00']
}
);