diff --git a/frontend/src/component/feature/metric-component.jsx b/frontend/src/component/feature/metric-component.jsx index 9923136a1a..021911c573 100644 --- a/frontend/src/component/feature/metric-component.jsx +++ b/frontend/src/component/feature/metric-component.jsx @@ -68,7 +68,7 @@ export default class MetricComponent extends React.Component { lastMinute.isFallback ? :
- +
}

Last minute
Yes {lastMinute.yes}, No: {lastMinute.no}

diff --git a/frontend/src/component/feature/progress.jsx b/frontend/src/component/feature/progress.jsx index c17d970b79..16e1a76268 100644 --- a/frontend/src/component/feature/progress.jsx +++ b/frontend/src/component/feature/progress.jsx @@ -82,7 +82,7 @@ class Progress extends Component { } render () { - const { strokeWidth } = this.props; + const { strokeWidth, color } = this.props; const radius = (50 - strokeWidth / 2); const pathDescription = ` M 50,50 m 0,-${radius} @@ -92,6 +92,7 @@ class Progress extends Component { const diameter = Math.PI * 2 * radius; const progressStyle = { + stroke: color, strokeDasharray: `${diameter}px ${diameter}px`, strokeDashoffset: `${((100 - this.state.percentage) / 100 * diameter)}px`, };