From 9f767d2d18fd9f0c8aa1d40c9798f6934a021064 Mon Sep 17 00:00:00 2001 From: Kenneth Cheung Date: Wed, 13 May 2026 15:24:55 -0400 Subject: [PATCH] do not format graph values --- .../src/cljs/behave/components/results/graphs.cljs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/projects/behave/src/cljs/behave/components/results/graphs.cljs b/projects/behave/src/cljs/behave/components/results/graphs.cljs index 370c3089..ff8c4534 100644 --- a/projects/behave/src/cljs/behave/components/results/graphs.cljs +++ b/projects/behave/src/cljs/behave/components/results/graphs.cljs @@ -1,5 +1,6 @@ (ns behave.components.results.graphs (:require [behave.components.vega.result-chart :refer [result-chart]] + [number-utils.core :refer [parse-float]] [re-frame.core :refer [subscribe]])) (defn result-graphs [ws-uuid cell-data] @@ -12,11 +13,9 @@ (reduce (fn [acc [_row-id cell-data]] (conj acc (->> (reduce (fn [acc [_row-id col-uuid _repeat-id value]] - (let [fmt-fn (-> @(subscribe [:worksheet/result-table-formatters [col-uuid]]) - (get col-uuid identity))] - (assoc acc - @(subscribe [:wizard/gv-uuid->resolve-result-variable-name col-uuid]) - (fmt-fn value)))) + (assoc acc + @(subscribe [:wizard/gv-uuid->resolve-result-variable-name col-uuid]) + (parse-float value))) {} cell-data) (remove (fn [[_ value]] (= value -1)))