- TRIANGLE : function(g, name, ctx, cx, cy, color, radius) {
- ctx.lineWidth = 1;
- ctx.strokeStyle = color;
- new Dygraph.RegularShape_(3).draw(ctx, cx, cy, radius);
- },
- SQUARE : function(g, name, ctx, cx, cy, color, radius) {
- ctx.lineWidth = 1;
- ctx.strokeStyle = color;
- new Dygraph.RegularShape_(4, Math.PI / 4).draw(ctx, cx, cy, radius);
- },
- DIAMOND : function(g, name, ctx, cx, cy, color, radius) {
- ctx.lineWidth = 1;
- ctx.strokeStyle = color;
- new Dygraph.RegularShape_(4).draw(ctx, cx, cy, radius);
- },
- PENTAGON : function(g, name, ctx, cx, cy, color, radius) {
- ctx.lineWidth = 1;
- ctx.strokeStyle = color;
- new Dygraph.RegularShape_(5).draw(ctx, cx, cy, radius);
- },
- HEXAGON : function(g, name, ctx, cx, cy, color, radius) {
- ctx.lineWidth = 1;
- ctx.strokeStyle = color;
- new Dygraph.RegularShape_(6).draw(ctx, cx, cy, radius);
- },
+ TRIANGLE : Dygraph.shapeFunction_(3),
+ SQUARE : Dygraph.shapeFunction_(4, Math.PI / 4),
+ DIAMOND : Dygraph.shapeFunction_(4),
+ PENTAGON : Dygraph.shapeFunction_(5),
+ HEXAGON : Dygraph.shapeFunction_(6),