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']
}
);