X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fcustom-circles.html;h=8a25d4b020b41e41b8fd68161a9ca3ae504dd2bf;hb=6611837c5490f2f4b6d61967aa1ad658ed5f11d4;hp=f2ef0943154b1ffb045a6973f76a3245f7785adb;hpb=a7803eea480d293985319aa33a70c95c54cf0781;p=dygraphs.git diff --git a/tests/custom-circles.html b/tests/custom-circles.html index f2ef094..8a25d4b 100644 --- a/tests/custom-circles.html +++ b/tests/custom-circles.html @@ -1,16 +1,10 @@ - + Custom Circles - - - + + @@ -31,13 +25,15 @@ drawPoints : true, pointSize : 5, highlightCircleSize: 8, - A : { - drawPointCallback : Dygraph.Circles.TRIANGLE, - drawHighlightPointCallback : Dygraph.Circles.TRIANGLE - }, - B : { - drawPointCallback : Dygraph.Circles.HEXAGON, - drawHighlightPointCallback : Dygraph.Circles.HEXAGON + series : { + A : { + drawPointCallback : Dygraph.Circles.TRIANGLE, + drawHighlightPointCallback : Dygraph.Circles.TRIANGLE + }, + B : { + drawPointCallback : Dygraph.Circles.HEXAGON, + drawHighlightPointCallback : Dygraph.Circles.HEXAGON + } } }); @@ -95,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 };