Add timestamp to legend
parent
2df58fe22e
commit
6223abe56b
|
@ -19,6 +19,7 @@ const DygraphLegend = ({
|
||||||
filterText,
|
filterText,
|
||||||
isAscending,
|
isAscending,
|
||||||
onInputChange,
|
onInputChange,
|
||||||
|
xHTML,
|
||||||
}) => {
|
}) => {
|
||||||
const sorted = _.sortBy(
|
const sorted = _.sortBy(
|
||||||
series,
|
series,
|
||||||
|
@ -66,6 +67,7 @@ const DygraphLegend = ({
|
||||||
onMouseLeave={onHide}
|
onMouseLeave={onHide}
|
||||||
>
|
>
|
||||||
<div className="dygraph-legend--header">
|
<div className="dygraph-legend--header">
|
||||||
|
<div className="dygraph-legend--timestamp">{xHTML}</div>
|
||||||
<input
|
<input
|
||||||
className="dygraph-legend--filter form-control input-sm"
|
className="dygraph-legend--filter form-control input-sm"
|
||||||
type="text"
|
type="text"
|
||||||
|
|
|
@ -157,6 +157,12 @@
|
||||||
|
|
||||||
> .btn { margin-left: 4px; }
|
> .btn { margin-left: 4px; }
|
||||||
}
|
}
|
||||||
|
.dygraph-legend--timestamp {
|
||||||
|
margin-right: 8px;
|
||||||
|
height: 30px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: $g13-mist;
|
||||||
|
}
|
||||||
.dygraph-legend--filter {
|
.dygraph-legend--filter {
|
||||||
flex: 1 0 0;
|
flex: 1 0 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue