X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-layout.js;h=4caa935e167b5c64e55fe7f73b9a965aa84d06f5;hb=250bb62bb4614a3c1189c9b5b8b99e182a11db6e;hp=51776f6a9dfde869d4838e5cc60870a97ae724e8;hpb=e956b69b1f4fcf6844b795ae7615a25f643ae450;p=dygraphs.git diff --git a/dygraph-layout.js b/dygraph-layout.js index 51776f6..4caa935 100644 --- a/dygraph-layout.js +++ b/dygraph-layout.js @@ -149,14 +149,14 @@ DygraphLayout.prototype.setAnnotations = function(ann) { for (var i = 0; i < ann.length; i++) { var a = {}; if (!ann[i].xval && ann[i].x === undefined) { - this.dygraph_.error("Annotations must have an 'x' property"); + Dygraph.error("Annotations must have an 'x' property"); return; } if (ann[i].icon && !(ann[i].hasOwnProperty('width') && ann[i].hasOwnProperty('height'))) { - this.dygraph_.error("Must set width and height when setting " + - "annotation.icon property"); + Dygraph.error("Must set width and height when setting " + + "annotation.icon property"); return; } Dygraph.update(a, ann[i]); @@ -199,9 +199,9 @@ DygraphLayout.prototype._evaluateLimits = function() { axis.ylogrange = Dygraph.log10(axis.maxyval) - Dygraph.log10(axis.minyval); axis.ylogscale = (axis.ylogrange !== 0 ? 1.0 / axis.ylogrange : 1.0); if (!isFinite(axis.ylogrange) || isNaN(axis.ylogrange)) { - axis.g.error('axis ' + i + ' of graph at ' + axis.g + - ' can\'t be displayed in log scale for range [' + - axis.minyval + ' - ' + axis.maxyval + ']'); + Dygraph.error('axis ' + i + ' of graph at ' + axis.g + + ' can\'t be displayed in log scale for range [' + + axis.minyval + ' - ' + axis.maxyval + ']'); } } }