From: Dan Vanderkam Date: Tue, 14 Sep 2010 00:14:10 +0000 (-0700) Subject: change default size X-Git-Tag: v1.0.0~668 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=a5ad69ccb4d84d905fe5bbe419f75d064e88bd1c;p=dygraphs.git change default size --- diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 13e5fe6..123fa83 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -542,8 +542,8 @@ DygraphCanvasRenderer.prototype._renderAnnotations = function() { div.className += " " + a.cssClass; } - var width = a.hasOwnProperty('height') ? a.height : 20; - var height = a.hasOwnProperty('width') ? a.width : 16; + var width = a.hasOwnProperty('width') ? a.width : 16; + var height = a.hasOwnProperty('height') ? a.height : 16; if (a.hasOwnProperty('icon')) { var img = document.createElement("img"); img.src = a.icon;