diff --git a/app/scripts/app.jsx b/app/scripts/app.jsx
index 68639dc..a09f73d 100644
--- a/app/scripts/app.jsx
+++ b/app/scripts/app.jsx
@@ -69,7 +69,8 @@ var OrgStats = React.createClass({
render: function(){
return (
);
}
@@ -81,7 +82,7 @@ var TeamStats = React.createClass({
return (
+ params={this.getParams()} items={["repo", "user"]} />
);
}
@@ -92,7 +93,8 @@ var UserStats = React.createClass({
render: function(){
return (
);
}
@@ -103,7 +105,8 @@ var RepoStats = React.createClass({
render: function(){
return (
);
}
diff --git a/app/scripts/charts.jsx b/app/scripts/charts.jsx
index e98e091..3277e8c 100644
--- a/app/scripts/charts.jsx
+++ b/app/scripts/charts.jsx
@@ -3,6 +3,7 @@ var SVGNS = "http://www.w3.org/2000/svg",
var BarChart = React.createClass({
mixins: [Router.Navigation, Router.State],
+
barHeight: 30,
barMargin: 5,
@@ -64,18 +65,15 @@ var BarChart = React.createClass({
}
}.bind(this));
- s = {
+ this.setState({
points: points,
min: min,
max: max
- };
- // console.log(s);
- this.setState(s);
+ });
},
apiParams: function() {
- // Deep copy
- // Don't use jQuery.extend
+ // Deep copy, but don't use jQuery.extend
var params = JSON.parse(JSON.stringify(this.props.params));
params['item'] = this.state.item;
return params;
@@ -94,7 +92,6 @@ var BarChart = React.createClass({
},
render: function() {
- // console.log("State:", this.state)
return (