X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fcustom-circles.html;h=8a25d4b020b41e41b8fd68161a9ca3ae504dd2bf;hb=a5f3d82dc74669f378a1e7c63e10bd9804ce4ca2;hp=0e6d62f240719630f95adeea6c6df7c9f2eda028;hpb=c70fe730d3e8a4ff32f9371d95a7894441f2f671;p=dygraphs.git diff --git a/tests/custom-circles.html b/tests/custom-circles.html index 0e6d62f..8a25d4b 100644 --- a/tests/custom-circles.html +++ b/tests/custom-circles.html @@ -1,16 +1,10 @@ - + Custom Circles - - - + + @@ -97,7 +91,8 @@ var shapes = []; var addShape = function(name, pointFn, highlightPointFn) { shapes.push(name); - opts[name] = { + if (!opts['series']) opts['series'] = {}; + opts.series[name] = { drawPointCallback: pointFn, drawHighlightPointCallback: highlightPointFn };