};
};
-Dygraph.update(Dygraph.Circles, {
+var customCircles = {
TRIANGLE : shapeFunction(3),
SQUARE : shapeFunction(4, Math.PI / 4),
DIAMOND : shapeFunction(4),
ctx.closePath();
ctx.stroke();
}
-});
+};
+
+for (var k in customCircles) {
+ if (!customCircles.hasOwnProperty(k)) continue;
+ Dygraph.Circles[k] = customCircles[k];
+}
})();