diff --git a/core/client.js b/core/client.js index 52d66d8a..69faaf48 100644 --- a/core/client.js +++ b/core/client.js @@ -313,9 +313,11 @@ class TfSparkLineElement extends LitElement { } render() { + let max = Math.round(10.0 * Math.max(...this.lines.map(line => line.values[line.values.length - 1]))) / 10.0; return html` ${this.lines.map(x => this.render_line(x))} + ${max} `; }