X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fcustom-circles.html;h=ba8f4b8e6191e7ecf30efae04b6b6358d3bd85ca;hb=92588fa1956f9e9e71e53e170a57048efed35c87;hp=0e6d62f240719630f95adeea6c6df7c9f2eda028;hpb=30abcfb6d82bb759400f4fad15a691ffad77d049;p=dygraphs.git diff --git a/tests/custom-circles.html b/tests/custom-circles.html index 0e6d62f..ba8f4b8 100644 --- a/tests/custom-circles.html +++ b/tests/custom-circles.html @@ -1,16 +1,13 @@ - Custom Circles - + @@ -97,7 +94,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 };