return ret;
}
-// These functions are both based on MochiKit.
+// These functions are all based on MochiKit.
Dygraph.isArrayLike = function (o) {
var typ = typeof(o);
if (
return true;
};
+Dygraph.clone = function(obj) {
+ var me = arguments.callee;
+ me.prototype = obj;
+ return new me();
+};
+
/**
* Get the CSV data. If it's in a function, call that function. If it's in a
</table>
<script type="text/javascript">
- new Dygraph(
+ g = new Dygraph(
document.getElementById("graph"),
"Date,GapSeries1,GapSeries2\n" +
"2009/12/01,10,10\n" +
"2009/12/07,12,16\n"
);
- new Dygraph(
+ g2 = new Dygraph(
document.getElementById("graph2"),
[
[ new Date("2009/12/01"), 10, 10],
}
);
- new Dygraph(
+ g3 = new Dygraph(
document.getElementById("graph3"),
[
[1, [10, 2], [20, 3]],
}
);
- new Dygraph(
+ g4 = new Dygraph(
document.getElementById("graph4"),
[
[1, [10, 2], [20, 3]],