Graph: Legend decimals now work as expected (#24931)

* Graph: Legend decimals now work as expected

* removed new test that I could not get green
This commit is contained in:
Torkel Ödegaard
2020-05-20 17:28:41 +02:00
committed by GitHub
parent 6099398c37
commit 8aedf81133
2 changed files with 5 additions and 4 deletions

View File

@@ -98,8 +98,8 @@ export default class TimeSeries {
hideTooltip: boolean;
allIsNull: boolean;
allIsZero: boolean;
decimals: number;
scaledDecimals: number;
decimals: DecimalCount;
scaledDecimals: DecimalCount;
hasMsResolution: boolean;
isOutsideRange: boolean;
@@ -344,8 +344,8 @@ export default class TimeSeries {
updateLegendValues(formater: ValueFormatter, decimals: DecimalCount, scaledDecimals: DecimalCount) {
this.valueFormater = formater;
this.decimals = decimals ?? 0;
this.scaledDecimals = scaledDecimals ?? 0;
this.decimals = decimals;
this.scaledDecimals = scaledDecimals;
}
formatValue(value: number) {