Add timestamp to legend

pull/1679/head^2
Alex P 2017-06-30 10:48:58 -07:00 committed by Andrew Watkins
parent 2df58fe22e
commit 6223abe56b
2 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,7 @@ const DygraphLegend = ({
filterText,
isAscending,
onInputChange,
xHTML,
}) => {
const sorted = _.sortBy(
series,
@ -66,6 +67,7 @@ const DygraphLegend = ({
onMouseLeave={onHide}
>
<div className="dygraph-legend--header">
<div className="dygraph-legend--timestamp">{xHTML}</div>
<input
className="dygraph-legend--filter form-control input-sm"
type="text"

View File

@ -157,6 +157,12 @@
> .btn { margin-left: 4px; }
}
.dygraph-legend--timestamp {
margin-right: 8px;
height: 30px;
font-weight: 600;
color: $g13-mist;
}
.dygraph-legend--filter {
flex: 1 0 0;
}