From: Robert Konigsberg Date: Thu, 23 Feb 2012 00:21:54 +0000 (-0500) Subject: Add custom-circles demo to tests/. Obvious bugs in rendering custom widgets. X-Git-Tag: v1.0.0~323^2~4 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=773d13120797a305a2c4ee5c6da0e8b4beb1bc81;p=dygraphs.git Add custom-circles demo to tests/. Obvious bugs in rendering custom widgets. --- diff --git a/dygraph-utils.js b/dygraph-utils.js index 9f4fcb0..ab973b3 100644 --- a/dygraph-utils.js +++ b/dygraph-utils.js @@ -855,7 +855,7 @@ Dygraph.Circles = { Dygraph.DrawPolygon_(4, Math.PI / 4, ctx, cx, cy, color, radius); }, DIAMOND : function(g, name, ctx, cx, cy, color, radius) { - Dygraph.DrawPolygon_(4, Math.PI / 4, ctx, cx, cy, color, radius, Math.PI / 8); + Dygraph.DrawPolygon_(4, Math.PI / 4, ctx, cx, cy, color, radius, Math.PI / 4); }, PENTAGON : function(g, name, ctx, cx, cy, color, radius) { Dygraph.DrawPolygon_(5, Math.PI / 5, ctx, cx, cy, color, radius); diff --git a/tests/custom-circles.html b/tests/custom-circles.html new file mode 100644 index 0000000..6a4ced1 --- /dev/null +++ b/tests/custom-circles.html @@ -0,0 +1,78 @@ + + + + + Per-Series Properties + + + + + + +

Chart with per-series properties

+
+ + + +