Permalink
Browse files

Merge branch 'master' of git://github.com/PerishableDave/xcharts into…

… PerishableDave-master
  • Loading branch information...
2 parents d861d06 + a226cd7 commit 9cb40970338c267ebc3e997a46e3d1b176b7a778 @paularmstrong paularmstrong committed Jun 28, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/chart.js
View
@@ -232,10 +232,10 @@ _.defaults(xChart.prototype, {
break;
}
- o.xMin = data.xMin || o.xMin;
- o.xMax = data.xMax || o.xMax;
- o.yMin = data.yMin || o.yMin;
- o.yMax = data.yMax || o.yMax;
+ if (data.xMin != null) o.xMin = data.xMin;
+ if (data.xMax != null) o.xMax = data.xMax;
+ if (data.yMin != null) o.yMin = data.yMin;
+ if (data.yMax != null) o.yMax = data.yMax;
if (self._vis) {
self._destroy(self._vis, self._mainStorage);

0 comments on commit 9cb4097

Please sign in to comment.