this.scale.draw();
}
+ // Clip out the chart area so that anything outside does not draw. This is necessary for zoom and pan to function
+ this.chart.ctx.save();
+ this.chart.ctx.beginPath();
+ this.chart.ctx.rect(this.chartArea.left, this.chartArea.top, this.chartArea.right - this.chartArea.left, this.chartArea.bottom - this.chartArea.top);
+ this.chart.ctx.clip();
+
// Draw each dataset via its respective controller (reversed to support proper line stacking)
helpers.each(this.data.datasets, function(dataset, datasetIndex) {
if (helpers.isDatasetVisible(dataset)) {
}
}, null, true);
+ // Restore from the clipping operation
+ this.chart.ctx.restore();
+
// Finally draw the tooltip
this.tooltip.transition(easingDecimal).draw();
},