From 773d13120797a305a2c4ee5c6da0e8b4beb1bc81 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Wed, 22 Feb 2012 19:21:54 -0500 Subject: [PATCH] Add custom-circles demo to tests/. Obvious bugs in rendering custom widgets. --- dygraph-utils.js | 2 +- tests/custom-circles.html | 78 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 tests/custom-circles.html 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

+
+ + + + -- 2.7.4