Skip to content

Commit ea6fb2c

Browse files
committed
Bump version
1 parent 7ec531d commit ea6fb2c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

chartjs-plugin-annotation.js

Lines changed: 5 additions & 2 deletions
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.5
4+
* Version: 0.5.6
55
*
66
* Copyright 2016 Evert Timberg
77
* Released under the MIT license
@@ -525,7 +525,10 @@ module.exports = function(Chart) {
525525

526526
// Set the data range for this annotation
527527
model.ranges = {};
528-
528+
529+
var min = 0;
530+
var max = 0;
531+
529532
if (xScale) {
530533
min = helpers.isValid(options.xMin) ? options.xMin : xScale.getPixelForValue(chartArea.left);
531534
max = helpers.isValid(options.xMax) ? options.xMax : xScale.getPixelForValue(chartArea.right);

0 commit comments

Comments
 (0)