We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c85efe commit 1e0f7dcCopy full SHA for 1e0f7dc
src/types/box.js
@@ -14,7 +14,10 @@ module.exports = function(Chart) {
14
15
// Set the data range for this annotation
16
model.ranges = {};
17
-
+
18
+ var min = 0;
19
+ var max = 0;
20
21
if (xScale) {
22
min = helpers.isValid(options.xMin) ? options.xMin : xScale.getPixelForValue(chartArea.left);
23
max = helpers.isValid(options.xMax) ? options.xMax : xScale.getPixelForValue(chartArea.right);
0 commit comments