1
0
Fork 0

Change stacked area change height 250 -> 350

This commit is contained in:
Gregory Eremin 2015-03-14 22:53:57 +07:00
parent b9be987470
commit 0d9e653222
1 changed files with 27 additions and 1 deletions

View File

@ -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 (
<div className="sachart-container">
<div className="whatsgoingon">
This stacked area chart represents <em>{words.items[this.state.item]}</em> {words.actions[this.state.item]} <em>{who}</em> {words.item[subject]} from <em>W11, Mar 9</em> to <em>W18, Apr 27</em>
</div>
<div className="filters">
<Selector thing="item"
items={this.props.items}