diff --git a/app/scripts/src/charts/stacked_area_chart.jsx b/app/scripts/src/charts/stacked_area_chart.jsx index 32b231d..d2fd60c 100644 --- a/app/scripts/src/charts/stacked_area_chart.jsx +++ b/app/scripts/src/charts/stacked_area_chart.jsx @@ -3,7 +3,7 @@ var StackedAreaChart = React.createClass({ numElements: 10, maxWeeks: 20, - height: 250, + height: 350, getInitialState: function() { return { @@ -172,8 +172,34 @@ var StackedAreaChart = React.createClass({ ); }.bind(this)); + var words = { + items: { + repo: 'repositories', + team: 'teams', + user: 'contributors' + }, + item: { + repo: 'repository', + team: 'team', + user: 'author' + }, + actions: { + repo: 'which were the most attended by', + team: 'which were the most active working on', + user: 'which were the most active working on' + } + }, + who = this.getParams().repo || this.getParams().team || this.getParams().user || this.getParams().org; + + var params = Object.keys(this.getParams()); + params.splice(params.indexOf('org'), 1); + var subject = params[0]; + return (