X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fcustom-circles.html;h=55cc0bb9d91c84fb0c6dc1fbf0cd153450c35119;hb=91bd611cb031bf1f3d39650e3109135fd0e78791;hp=f2ef0943154b1ffb045a6973f76a3245f7785adb;hpb=eb96f83382a3b80db03db8b5fd06f02e65cedf7d;p=dygraphs.git diff --git a/tests/custom-circles.html b/tests/custom-circles.html index f2ef094..55cc0bb 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 };