react-d3-core
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -60,3 +60,9 @@ 'use strict'; | ||
return _d3Array2.default.extent([].concat.apply([], domainArr)); | ||
var extentArr = _d3Array2.default.extent([].concat.apply([], domainArr)); | ||
if (extentArr[0] * extentArr[1] >= 0) { | ||
return [0, extentArr[1]]; | ||
} else { | ||
return extentArr; | ||
} | ||
} | ||
@@ -63,0 +69,0 @@ } else { |
{ | ||
"name": "react-d3-core", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "react-d3 chart core component", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
68358
1384