Ensure that the bar draws to the correct spot

This commit is contained in:
Evert Timberg 2015-05-02 15:03:40 -04:00
parent 62b29282fd
commit e13ada2b43

View File

@ -149,6 +149,7 @@
if (this.scale.beginAtZero || ((this.scale.min <= 0 && this.scale.max >= 0) || (this.scale.min >= 0 && this.scale.max <= 0))) if (this.scale.beginAtZero || ((this.scale.min <= 0 && this.scale.max >= 0) || (this.scale.min >= 0 && this.scale.max <= 0)))
{ {
base = this.scale.calculateY(0); base = this.scale.calculateY(0);
base += this.options.scaleGridLineWidth;
} }
else if (this.scale.min < 0 && this.scale.max < 0) else if (this.scale.min < 0 && this.scale.max < 0)
{ {