X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fcustom-circles.html;h=ba8f4b8e6191e7ecf30efae04b6b6358d3bd85ca;hb=dc836ebb77ab18a402ea4ae590059299d88b0deb;hp=f2ef0943154b1ffb045a6973f76a3245f7785adb;hpb=eb96f83382a3b80db03db8b5fd06f02e65cedf7d;p=dygraphs.git diff --git a/tests/custom-circles.html b/tests/custom-circles.html index f2ef094..ba8f4b8 100644 --- a/tests/custom-circles.html +++ b/tests/custom-circles.html @@ -1,16 +1,13 @@ - Custom Circles - + @@ -31,13 +28,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 +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 };