diff --git a/ui/src/shared/components/LineGraph.js b/ui/src/shared/components/LineGraph.js index 58f063445c..9650a773c6 100644 --- a/ui/src/shared/components/LineGraph.js +++ b/ui/src/shared/components/LineGraph.js @@ -84,6 +84,14 @@ class LineGraph extends Component { ? SINGLE_STAT_LINE_COLORS : overrideLineColors + let prefix + let suffix + + if (axes) { + prefix = axes.y.prefix + suffix = axes.y.suffix + } + return (
{isRefreshing ? : null} @@ -108,6 +116,8 @@ class LineGraph extends Component { /> {showSingleStat ? + {prefix} {roundedValue} {suffix} {lineGraph &&
} @@ -98,6 +100,7 @@ SingleStat.propTypes = { value: string.isRequired, }).isRequired ), + prefix: string, suffix: string, lineGraph: bool, }