diff --git a/app/javascript/controllers/time_series_chart_controller.js b/app/javascript/controllers/time_series_chart_controller.js index 6717110f..e557276c 100644 --- a/app/javascript/controllers/time_series_chart_controller.js +++ b/app/javascript/controllers/time_series_chart_controller.js @@ -248,22 +248,28 @@ export default class extends Controller { ${d3.timeFormat("%b %d, %Y")(data.date)} -
- - - +
+
+ + + - ${this.#tooltipValue(data)} + ${this.#tooltipValue(data)} +
- - ${this.#tooltipChange(data)} (${data.trend.percent}%) - + ${data.trend.value == 0 || data.trend.value.amount == 0 ? ` + + ` : ` + + ${this.#tooltipChange(data)} (${data.trend.percent}%) + + `}
`) }