From: David Eberlein Date: Thu, 11 Apr 2013 15:53:05 +0000 (+0200) Subject: REFACTORING: Added exception if no y axis has the independentTicks X-Git-Tag: v1.0.0~29^2^2~8 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=eba6dd23fd5fcdac7c4490ea8cb3ac4c71613bff;p=dygraphs.git REFACTORING: Added exception if no y axis has the independentTicks option activated. --- diff --git a/dygraph.js b/dygraph.js index e7acc6d..bcf25e0 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2736,7 +2736,8 @@ Dygraph.prototype.computeYAxisRanges_ = function(extremes) { p_axis = axis; } } - + if(p_axis == undefined) + throw ("Configuration Error: At least one axis has to have the \"independentTicks\" option activated."); // Add ticks. By default, all axes inherit the tick positions of the // primary axis. However, if an axis is specifically marked as having // independent ticks, then that is permissible as well.