Skip to content

Commit

Permalink
Merge pull request #25 from jmsv23/master
Browse files Browse the repository at this point in the history
Update build and npm publis version 1.0.12
  • Loading branch information
enzolutions authored May 13, 2019
2 parents b96d84b + 1a7f5ea commit 38c6356
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/react-bubble-chart-d3.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ var BubbleChart = function (_Component) {
data = _props3.data,
height = _props3.height,
width = _props3.width,
padding = _props3.padding,
showLegend = _props3.showLegend,
legendPercentage = _props3.legendPercentage;
// Reset the svg element to a empty state.
Expand All @@ -90,7 +91,7 @@ var BubbleChart = function (_Component) {
var legendWidth = width - bubblesWidth;
var color = d3.scaleOrdinal(d3.schemeCategory20c);

var pack = d3.pack().size([bubblesWidth * graph.zoom, bubblesWidth * graph.zoom]).padding(0);
var pack = d3.pack().size([bubblesWidth * graph.zoom, bubblesWidth * graph.zoom]).padding(padding);

// Process the data to have a hierarchy structure;
var root = d3.hierarchy({ children: data }).sum(function (d) {
Expand Down Expand Up @@ -278,6 +279,7 @@ BubbleChart.propTypes = {
}),
width: _propTypes2.default.number,
height: _propTypes2.default.number,
padding: _propTypes2.default.number,
showLegend: _propTypes2.default.bool,
legendPercentage: _propTypes2.default.number,
legendFont: _propTypes2.default.shape({
Expand Down Expand Up @@ -307,6 +309,7 @@ BubbleChart.defaultProps = {
},
width: 1000,
height: 800,
padding: 0,
showLegend: true,
legendPercentage: 20,
legendFont: {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@weknow/react-bubble-chart-d3",
"version": "1.0.11",
"version": "1.0.12",
"description": "ReactJS component to display data as a bubble chart using D3.",
"keywords": [
"ReactJS",
Expand Down

0 comments on commit 38c6356

Please sign in to comment.