Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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)))
Expand Down
Loading