"2009/07/12 06:00:00,4,6"
}
- new Dygraph(
+ var g1 = new Dygraph(
document.getElementById("normal"),
HourlyData()
);
- new Dygraph(
+ var g2 = new Dygraph(
document.getElementById("offby2"),
HourlyData(),
{
axes: {
x: {
- axisLabelFormatter: function(d, gran) {
- return Dygraph.dateAxisFormatter(new Date(d.getTime() + 7200*1000), gran);
+ axisLabelFormatter: function(d, gran, opts) {
+ return Dygraph.dateAxisLabelFormatter(new Date(d.getTime() + 7200*1000), gran, opts);
}
}
}
});
- new Dygraph(
+ var g3 = new Dygraph(
document.getElementById("seconds"),
HourlyData(),
{