From 87bb7958046ffef904e9f7c203fa2f940599a80e Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Thu, 5 Aug 2010 14:05:24 -0700 Subject: [PATCH] support changing renderer options like strokeWidth and add a test --- dygraph.js | 1 + tests/layout-options.html | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 tests/layout-options.html diff --git a/dygraph.js b/dygraph.js index 34a387a..f5e7d38 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2198,6 +2198,7 @@ Dygraph.prototype.updateOptions = function(attrs) { this.valueRange_ = attrs.valueRange; } Dygraph.update(this.user_attrs_, attrs); + Dygraph.update(this.renderOptions_, attrs); this.labelsFromCSV_ = (this.attr_("labels") == null); diff --git a/tests/layout-options.html b/tests/layout-options.html new file mode 100644 index 0000000..fb1a3db --- /dev/null +++ b/tests/layout-options.html @@ -0,0 +1,33 @@ + + + Layout Options + + + + + + + + +

Layout Options Update

+
+ + +

Stroke Width: + + +

+ + -- 2.7.4