X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph.js;h=82725d542b97af89e3e00fc887b2f8e39d6da3f9;hb=e8b3c7b4e228eeff222af97b075ad6d417913556;hp=cc983a6b228f92e44c79e1eb5aa54f4dbbaccd62;hpb=7ad6c698d28d7d0f0770e1f6490f1a9649c64b6f;p=dygraphs.git diff --git a/dygraph.js b/dygraph.js index cc983a6..82725d5 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2732,12 +2732,12 @@ Dygraph.prototype.computeYAxisRanges_ = function(extremes) { opts, this); // Define the first independent axis as primary axis. - if(!p_axis) - p_axis = axis; + if (!p_axis) p_axis = axis; } } - if(p_axis === undefined) + 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.