X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fcustom-circles.html;h=5f988f28930a935b48540145e14e4e2e1c3ae20c;hb=93a5bb4c827d6665f395c48b216438f95e94d76e;hp=0e6d62f240719630f95adeea6c6df7c9f2eda028;hpb=d61e06a4eb7282c37589daf3a24090534aff8430;p=dygraphs.git diff --git a/tests/custom-circles.html b/tests/custom-circles.html index 0e6d62f..5f988f2 100644 --- a/tests/custom-circles.html +++ b/tests/custom-circles.html @@ -1,16 +1,14 @@ - + Custom Circles - - + + @@ -97,7 +95,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 };