Read about our upcoming Code of Conduct on this issue

Unverified Commit ece9621b authored by Mike Greiling's avatar Mike Greiling
Browse files

allow legend to properly handle NaN values

parent e59f2fada647
......@@ -79,7 +79,11 @@
formatMetricUsage(series) {
return `${formatRelevantDigits(series.values[this.currentDataIndex].value)} ${this.unitOfDisplay}`;
const value = series.values[this.currentDataIndex].value;
if (isNaN(value)) {
return '-';
return `${formatRelevantDigits(value)} ${this.unitOfDisplay}`;
createSeriesString(index, series) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment