Merge pull request #475 from danvk/checked-options
[dygraphs.git] / tests / custom-circles.html
index 0f0ec3c..127ec04 100644 (file)
@@ -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
           };