Change stacked area change height 250 -> 350
This commit is contained in:
parent
b9be987470
commit
0d9e653222
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue