victory-chart
Advanced tools
Comparing version 21.6.2 to 22.0.0
# VictoryChart Changelog | ||
## 22.0.0 (2017-09-09) | ||
- Updates to `victory-core@18.0.0` which includes breaking changes for `VictoryTooltip` styling. | ||
## 21.6.2 (2017-08-19) | ||
@@ -4,0 +8,0 @@ |
@@ -160,3 +160,3 @@ import _defaults from "lodash/defaults"; | ||
var max = Math.max.apply(Math, _toConsumableArray(allData)); | ||
if (min === max) { | ||
if (+min === +max) { | ||
return Domain.getSinglePointDomain(max); | ||
@@ -163,0 +163,0 @@ } |
@@ -211,3 +211,3 @@ import _sortBy from "lodash/sortBy"; | ||
// handle charts with just one data point? | ||
if (min === max) { | ||
if (+min === +max) { | ||
return Domain.getSinglePointDomain(max); | ||
@@ -214,0 +214,0 @@ } |
@@ -177,3 +177,3 @@ Object.defineProperty(exports, "__esModule", { | ||
var max = Math.max.apply(Math, _toConsumableArray(allData)); | ||
if (min === max) { | ||
if (+min === +max) { | ||
return _victoryCore.Domain.getSinglePointDomain(max); | ||
@@ -180,0 +180,0 @@ } |
@@ -234,3 +234,3 @@ Object.defineProperty(exports, "__esModule", { | ||
// handle charts with just one data point? | ||
if (min === max) { | ||
if (+min === +max) { | ||
return _victoryCore.Domain.getSinglePointDomain(max); | ||
@@ -237,0 +237,0 @@ } |
{ | ||
"name": "victory-chart", | ||
"version": "21.6.2", | ||
"version": "22.0.0", | ||
"description": "Chart Component for Victory", | ||
@@ -35,3 +35,3 @@ "main": "lib/index.js", | ||
"lodash": "^4.17.4", | ||
"victory-core": "^17.1.0" | ||
"victory-core": "^18.0.0" | ||
}, | ||
@@ -38,0 +38,0 @@ "devDependencies": { |
@@ -144,3 +144,3 @@ import { assign, sortBy, omit, defaults } from "lodash"; | ||
const max = Math.max(...allData); | ||
if (min === max) { | ||
if (+min === +max) { | ||
return Domain.getSinglePointDomain(max); | ||
@@ -147,0 +147,0 @@ } |
@@ -190,3 +190,3 @@ import { assign, omit, defaults, isArray, flatten, sortBy } from "lodash"; | ||
// handle charts with just one data point? | ||
if (min === max) { | ||
if (+min === +max) { | ||
return Domain.getSinglePointDomain(max); | ||
@@ -193,0 +193,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2783230
50387
+ Addedvictory-core@18.0.2(transitive)
- Removedvictory-core@17.2.7(transitive)
Updatedvictory-core@^18.0.0