react-d3-shape
Advanced tools
Comparing version 0.2.24 to 0.3.24
@@ -28,3 +28,4 @@ "use strict"; | ||
showXGrid: true, | ||
showYGrid: true | ||
showYGrid: true, | ||
showLegend: true | ||
}; | ||
@@ -31,0 +32,0 @@ var pieProps = exports.pieProps = { |
@@ -15,2 +15,6 @@ "use strict"; | ||
var _d = require('d3'); | ||
var _d2 = _interopRequireDefault(_d); | ||
var _d3Shape = require('d3-shape'); | ||
@@ -94,3 +98,3 @@ | ||
}; | ||
return d3.layout.stack().values(function (d) { | ||
return _d2.default.layout.stack().values(function (d) { | ||
return d.data; | ||
@@ -97,0 +101,0 @@ }).out(buildOut(chartSeries.length)); |
@@ -57,2 +57,3 @@ "use strict"; | ||
var yScaleSet = _props.yScaleSet; | ||
var barWidth = _props.barWidth; | ||
@@ -69,2 +70,3 @@ | ||
var zeroBase; | ||
var barBandWidth; | ||
@@ -79,2 +81,9 @@ if (domain[0] * domain[1] < 0) { | ||
// user defined barwidth | ||
if (barWidth) { | ||
barBandWidth = barWidth; | ||
} else { | ||
barBandWidth = yScaleSet.bandwidth(); | ||
} | ||
return _react2.default.createElement( | ||
@@ -95,3 +104,3 @@ 'g', | ||
className: barClassName + ' bar', | ||
height: yScaleSet.bandwidth(), | ||
height: barBandWidth, | ||
y: yScaleSet(bar.y) || yScaleSet(bar.y) === 0 ? yScaleSet(bar.y) : -10000, | ||
@@ -98,0 +107,0 @@ x: xScaleSet(bar.x0), |
@@ -62,2 +62,3 @@ "use strict"; | ||
var yScaleSet = _props.yScaleSet; | ||
var barWidth = _props.barWidth; | ||
@@ -71,2 +72,3 @@ | ||
var zeroBase; | ||
var barBandWidth; | ||
@@ -81,2 +83,9 @@ if (domain[0] * domain[1] < 0) { | ||
// user defined barwidth | ||
if (barWidth) { | ||
barBandWidth = barWidth; | ||
} else { | ||
barBandWidth = xScaleSet.bandwidth(); | ||
} | ||
return _react2.default.createElement( | ||
@@ -96,3 +105,3 @@ 'g', | ||
className: barClassName + ' bar', | ||
width: xScaleSet.bandwidth(), | ||
width: barBandWidth, | ||
x: xScaleSet(bar.x) || xScaleSet(bar.x) === 0 ? xScaleSet(bar.x) : -10000, | ||
@@ -99,0 +108,0 @@ y: yScaleSet(bar.y0 + bar.y), |
@@ -34,2 +34,20 @@ 'use strict'; | ||
var _brush = require('./components/brush'); | ||
Object.defineProperty(exports, 'Brush', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_brush).default; | ||
} | ||
}); | ||
var _blank_chart = require('./components/blank_chart'); | ||
Object.defineProperty(exports, 'BlankChart', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_blank_chart).default; | ||
} | ||
}); | ||
var _line = require('./components/line'); | ||
@@ -134,2 +152,11 @@ | ||
var _multi_line_brush = require('./components/multi_line_brush'); | ||
Object.defineProperty(exports, 'MultiLineBrushChart', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_multi_line_brush).default; | ||
} | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
{ | ||
"name": "react-d3-shape", | ||
"version": "0.2.24", | ||
"version": "0.3.24", | ||
"description": "react shape component", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
1073648
30
18959
1