Skip to content

Commit 8c64ec4

Browse files
patotomacompwright
authored andcommitted
Fix chartArea not yet available when calling setDataLimits (#80)
1 parent ea6fb2c commit 8c64ec4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/types/box.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ module.exports = function(Chart) {
1515
// Set the data range for this annotation
1616
model.ranges = {};
1717

18+
if (!chartArea) {
19+
return;
20+
}
21+
1822
var min = 0;
1923
var max = 0;
2024

0 commit comments

Comments
 (0)