X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fcustom-circles.html;h=127ec0461e4f20c6975fee2c00549aca5543f88f;hb=406eddbbdea074df010fc3c432185bc78f9a5814;hp=0f0ec3c87a5653d204b89e7ecfc11b452deb236a;hpb=335011fd4473f55aaaceb69726d15e0063373149;p=dygraphs.git diff --git a/tests/custom-circles.html b/tests/custom-circles.html index 0f0ec3c..127ec04 100644 --- a/tests/custom-circles.html +++ b/tests/custom-circles.html @@ -98,7 +98,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 };