react-d3-core
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -8,2 +8,8 @@ 'use strict'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _d3 = require('d3'); | ||
var _d32 = _interopRequireDefault(_d3); | ||
function scale(props) { | ||
@@ -15,3 +21,3 @@ var type = props.type; | ||
if (scale === 'linear') func = d3.scale.linear();else if (scale === 'identity') func = d3.scale.identity();else if (scale === 'sqrt') func = d3.scale.sqrt();else if (scale === 'pow') func = d3.scale.pow();else if (scale === 'log') func = d3.scale.log();else if (scale === 'quantize') func = d3.scale.quantize();else if (scale === 'quantile') func = d3.scale.quantile();else if (scale === 'ordinal') func = d3.scale.ordinal();else if (scale === 'time') func = d3.time.scale();else new Error('Please check your axis scale setting. "' + scale + '" scale is invalid. '); | ||
if (scale === 'linear') func = _d32['default'].scale.linear();else if (scale === 'identity') func = _d32['default'].scale.identity();else if (scale === 'sqrt') func = _d32['default'].scale.sqrt();else if (scale === 'pow') func = _d32['default'].scale.pow();else if (scale === 'log') func = _d32['default'].scale.log();else if (scale === 'quantize') func = _d32['default'].scale.quantize();else if (scale === 'quantile') func = _d32['default'].scale.quantile();else if (scale === 'ordinal') func = _d32['default'].scale.ordinal();else if (scale === 'time') func = _d32['default'].time.scale();else new Error('Please check your axis scale setting. "' + scale + '" scale is invalid. '); | ||
@@ -18,0 +24,0 @@ func = _mkScaleSettings(props, func); |
@@ -8,2 +8,8 @@ 'use strict'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _d3 = require('d3'); | ||
var _d32 = _interopRequireDefault(_d3); | ||
function xDomain(props) { | ||
@@ -22,3 +28,3 @@ var data = props.data; | ||
} else { | ||
return d3.extent(data, function (d) { | ||
return _d32['default'].extent(data, function (d) { | ||
return x(d); | ||
@@ -25,0 +31,0 @@ }); |
@@ -1,4 +0,4 @@ | ||
"use strict"; | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
@@ -8,2 +8,8 @@ }); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _d3 = require('d3'); | ||
var _d32 = _interopRequireDefault(_d3); | ||
function yDomain(props, stack) { | ||
@@ -45,3 +51,3 @@ var data = props.data; | ||
var field = d.field; | ||
var extent = d3.extent(data, function (dt) { | ||
var extent = _d32['default'].extent(data, function (dt) { | ||
return y(dt[field]); | ||
@@ -53,4 +59,4 @@ }); | ||
return d3.extent([].concat.apply([], domainArr)); | ||
return _d32['default'].extent([].concat.apply([], domainArr)); | ||
} | ||
} |
{ | ||
"name": "react-d3-core", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "react-d3 chart core component", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4125824
31239