Skip to content

Commit 1ab782a

Browse files
committed
Bump version
1 parent 8c64ec4 commit 1ab782a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

chartjs-plugin-annotation.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* chartjs-plugin-annotation.js
33
* http://chartjs.org/
4-
* Version: 0.5.6
4+
* Version: 0.5.7
55
*
66
* Copyright 2016 Evert Timberg
77
* Released under the MIT license
@@ -526,6 +526,10 @@ module.exports = function(Chart) {
526526
// Set the data range for this annotation
527527
model.ranges = {};
528528

529+
if (!chartArea) {
530+
return;
531+
}
532+
529533
var min = 0;
530534
var max = 0;
531535

0 commit comments

Comments
 (0)