diff --git a/app/javascript/controllers/time_series_chart_controller.js b/app/javascript/controllers/time_series_chart_controller.js index ca9dd6af..674eb144 100644 --- a/app/javascript/controllers/time_series_chart_controller.js +++ b/app/javascript/controllers/time_series_chart_controller.js @@ -6,7 +6,8 @@ export default class extends Controller { static values = { data: Object, useLabels: Boolean, - useTooltip: Boolean + useTooltip: Boolean, + usePercentSign: Boolean } #d3SvgMemo = null @@ -359,7 +360,7 @@ export default class extends Controller { stroke-width="1"> - ${this.#tooltipValue(data)} + ${this.#tooltipValue(data)}${this.usePercentSignValue ? "%" : ""} ${data.trend.value == 0 || data.trend.value.amount == 0 ? `