1
0
Fork 0
This commit is contained in:
Gregory Eremin 2015-03-19 16:26:27 +07:00
parent 4caf20ca25
commit 8e96d3834d
5 changed files with 23 additions and 8 deletions

View File

@ -49,7 +49,7 @@
content: '';
width: 16px;
height: 16px;
margin: 1px 5px 0 0;
margin: 2px 5px 0 0;
border-radius: 8px;
}
.sac .legend li {
@ -133,18 +133,21 @@
.whatsgoingon {
color: #444;
margin-bottom: 20px;
margin-bottom: 10px;
line-height: 24px;
min-height: 72px; /* 3*line-height */
}
.whatsgoingon span {
line-height: 24px;
}
.whatsgoingon em {
display: inline-block;
line-height: 16px;
color: #000;
font-style: normal;
margin: 3px 0 0;
padding: 3px 6px;
margin: 4px 0;
padding: 0px 3px;
background-color: #f0f0f0;
border-radius: 2px;
}
@ -177,11 +180,13 @@
}
.week-selector .selector em {
display: inline-block;
padding: 3px;
width: 100%;
}
.week-selector .selector select {
position: absolute;
top: 5px;
top: 4px;
left: 5%;
width: 90%;
margin: 0;
@ -214,3 +219,12 @@
.sac .dot text {
text-anchor: middle;
}
hr {
margin: 20px 20px 30px 0;
height: 1px;
color: #aaa;
background-color: #ccc;
border: 0 none;
clear: both;
}

View File

@ -18,7 +18,7 @@
.menu .empact {
height: 40px;
padding: 5px 0;
margin-bottom: 21px;
margin-bottom: 20px;
}
.menu .nav.header {
color: #444;

View File

@ -43,6 +43,7 @@ var Dashboard = React.createClass({
<div className="content">
<InfoBlock image={infoImage} className={infoImageClass} title={infoTitle} />
<StackedAreaChart api={sacApi} params={this.getParams()} items={sacItems} />
<hr />
<BarChart api={bcApi} params={this.getParams()} items={bcItems} />
</div>
);

View File

@ -143,7 +143,7 @@ var BarChart = React.createClass({
return (
<div className="barchart-container">
<div className="whatsgoingon">
This bar chart shows <em>{words.values[this.state.sort]}</em> {words.actions[this.state.item +'-'+ this.state.sort]} <em>{words.items[this.state.item]}</em> {words.whatHappened[this.state.item +'-'+ target]} <em>{subject}</em> {words.targetSuffix[target]} <WeekIntervalSelector />
This bar chart shows <em>{words.values[this.state.sort]}</em> {words.actions[this.state.item +'-'+ this.state.sort]} <em>{words.items[this.state.item]}</em> {words.whatHappened[this.state.item +'-'+ target]} <em>{subject}</em> {words.targetSuffix[target]}<br /><WeekIntervalSelector />
</div>
<div className="filters">
<Selector thing="sort"

View File

@ -300,7 +300,7 @@ var StackedAreaChart = React.createClass({
return (
<div ref="container" className="sac">
<div className="whatsgoingon">
This stacked area chart shows <em>the number of commits</em> {words.actions[this.state.item]} <em>{words.items[this.state.item]}</em> {words.whatHappened[this.state.item +'-'+ target]} <em>{subject}</em> {words.targetSuffix[target]} <WeekIntervalSelector />
This stacked area chart shows <em>the number of commits</em> {words.actions[this.state.item]} <em>{words.items[this.state.item]}</em> {words.whatHappened[this.state.item +'-'+ target]} <em>{subject}</em> {words.targetSuffix[target]}<br /><WeekIntervalSelector />
</div>
<div className="filters">
<Selector thing="sort"