projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aa4ddc5
)
note
author
Dan Vanderkam
<danvdk@gmail.com>
Wed, 20 Oct 2010 16:50:27 +0000
(12:50 -0400)
committer
Dan Vanderkam
<danvdk@gmail.com>
Wed, 20 Oct 2010 16:50:27 +0000
(12:50 -0400)
dygraph-canvas.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph-canvas.js
b/dygraph-canvas.js
index
6a7ba5f
..
72716ba
100644
(file)
--- a/
dygraph-canvas.js
+++ b/
dygraph-canvas.js
@@
-308,7
+308,7
@@
DygraphCanvasRenderer = function(dygraph, element, layout, options) {
this.area.w -= (this.options.yAxisLabelWidth + 2 * this.options.axisTickSize);
} else if (this.dygraph_.numAxes() > 2) {
this.dygraph_.error("Only two y-axes are supported at this time. (Trying " +
this.area.w -= (this.options.yAxisLabelWidth + 2 * this.options.axisTickSize);
} else if (this.dygraph_.numAxes() > 2) {
this.dygraph_.error("Only two y-axes are supported at this time. (Trying " +
- "to use " + this.
layout.yAxes.length
+ ")");
+ "to use " + this.
dygraph_.numAxes()
+ ")");
}
this.container.style.position = "relative";
}
this.container.style.position = "relative";
@@
-422,7
+422,7
@@
DygraphCanvasRenderer.prototype.render = function() {
var x = this.area.x + ticks[i][1] * this.area.w;
var y = this.area.y + this.area.h;
ctx.beginPath();
var x = this.area.x + ticks[i][1] * this.area.w;
var y = this.area.y + this.area.h;
ctx.beginPath();
- ctx.moveTo(x, y);
+ ctx.moveTo(x, y);
// x == NaN
ctx.lineTo(x, this.area.y);
ctx.closePath();
ctx.stroke();
ctx.lineTo(x, this.area.y);
ctx.closePath();
ctx.stroke();