From: Dan Vanderkam Date: Thu, 5 Aug 2010 21:05:24 +0000 (-0700) Subject: support changing renderer options like strokeWidth and add a test X-Git-Tag: v1.0.0~677 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=87bb7958046ffef904e9f7c203fa2f940599a80e;p=dygraphs.git support changing renderer options like strokeWidth and add a test --- 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: + + +

+ +