projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extended list of users
[dygraphs.git]
/
src
/
extras
/
shapes.js
diff --git
a/src/extras/shapes.js
b/src/extras/shapes.js
index
a453177
..
2df07a9
100644
(file)
--- a/
src/extras/shapes.js
+++ b/
src/extras/shapes.js
@@
-68,7
+68,7
@@
var shapeFunction = function(sides, rotationRadians, delta) {
};
};
};
};
-
Dygraph.update(Dygraph.Circles,
{
+
var customCircles =
{
TRIANGLE : shapeFunction(3),
SQUARE : shapeFunction(4, Math.PI / 4),
DIAMOND : shapeFunction(4),
TRIANGLE : shapeFunction(3),
SQUARE : shapeFunction(4, Math.PI / 4),
DIAMOND : shapeFunction(4),
@@
-113,6
+113,11
@@
Dygraph.update(Dygraph.Circles, {
ctx.closePath();
ctx.stroke();
}
ctx.closePath();
ctx.stroke();
}
-});
+};
+
+for (var k in customCircles) {
+ if (!customCircles.hasOwnProperty(k)) continue;
+ Dygraph.Circles[k] = customCircles[k];
+}
})();
})();