WIP tweak styles
parent
1c31a98642
commit
829a600c6e
|
@ -130,6 +130,7 @@ export default class Dygraph extends Component {
|
||||||
|
|
||||||
if (legend.x !== dygraphComponent.state.legend.x) {
|
if (legend.x !== dygraphComponent.state.legend.x) {
|
||||||
dygraphComponent.setState({legend})
|
dygraphComponent.setState({legend})
|
||||||
|
return '<div style="display:none"/>'
|
||||||
}
|
}
|
||||||
|
|
||||||
return '<div style="display:none"/>'
|
return '<div style="display:none"/>'
|
||||||
|
|
|
@ -22,7 +22,9 @@ const DygraphLegend = ({series, onSort}) => (
|
||||||
return (
|
return (
|
||||||
<span key={label + color}>
|
<span key={label + color}>
|
||||||
<b>
|
<b>
|
||||||
<span style={{color}}>
|
<span
|
||||||
|
style={{color, fontWeight: isHighlighted ? 'bold' : 'normal'}}
|
||||||
|
>
|
||||||
{label}: {yHTML}
|
{label}: {yHTML}
|
||||||
</span>
|
</span>
|
||||||
</b>
|
</b>
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.graph-vertical-marker {
|
.graph-vertical-marker {
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
@ -22,7 +21,6 @@
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='fade-out($g20-white, 0.71)', endColorstr='fade-out($g20-white, 0.71)',GradientType=0 );
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='fade-out($g20-white, 0.71)', endColorstr='fade-out($g20-white, 0.71)',GradientType=0 );
|
||||||
}
|
}
|
||||||
.container--dygraph-legend {
|
.container--dygraph-legend {
|
||||||
transform: translateX(-50%);
|
|
||||||
background-color: $g0-obsidian;
|
background-color: $g0-obsidian;
|
||||||
display: block !important;
|
display: block !important;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
Loading…
Reference in New Issue