projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enhancement to dygraph-many-point*-benchmark.html
[dygraphs.git]
/
dygraph-canvas.js
diff --git
a/dygraph-canvas.js
b/dygraph-canvas.js
index
f4140e6
..
9a12459
100644
(file)
--- a/
dygraph-canvas.js
+++ b/
dygraph-canvas.js
@@
-44,7
+44,7
@@
DygraphCanvasRenderer = function(dygraph, element, elementContext, layout) {
this.annotations = new Array();
this.chartLabels = {};
this.annotations = new Array();
this.chartLabels = {};
- this.area = layout.
plotArea
;
+ this.area = layout.
getPlotArea()
;
this.container.style.position = "relative";
this.container.style.width = this.width + "px";
this.container.style.position = "relative";
this.container.style.width = this.width + "px";
@@
-155,6
+155,7
@@
DygraphCanvasRenderer.prototype.render = function() {
if (this.attr_('drawYGrid')) {
var ticks = this.layout.yticks;
if (this.attr_('drawYGrid')) {
var ticks = this.layout.yticks;
+ // TODO(konigsberg): I don't think these calls to save() have a corresponding restore().
ctx.save();
ctx.strokeStyle = this.attr_('gridLineColor');
ctx.lineWidth = this.attr_('gridLineWidth');
ctx.save();
ctx.strokeStyle = this.attr_('gridLineColor');
ctx.lineWidth = this.attr_('gridLineWidth');