Skip to content
Snippets Groups Projects
Unverified Commit 666ad2ce authored by Howon Lee's avatar Howon Lee Committed by GitHub
Browse files

Set default waterfall colors static viz (#20334)

Pursuant to issue #20332 - it was blanking out without settings set before
parent 998ea65f
No related branches found
No related tags found
No related merge requests found
......@@ -795,12 +795,15 @@
render-fn (if (isa? (-> cols x-axis-rowfn :effective_type) :type/Temporal)
js-svg/timelineseries-waterfall
js-svg/categorical-waterfall)
show-total (if (nil? (:waterfall.show_total viz-settings))
true
(:waterfall.show_total viz-settings))
settings (-> (->js-viz x-col y-col viz-settings)
(update-in [:colors] assoc
:waterfallTotal (:waterfall.total_color viz-settings)
:waterfallPositive (:waterfall.increase_color viz-settings)
:waterfallNegative (:waterfall.decrease_color viz-settings))
(assoc :showTotal (:waterfall.show_total viz-settings)))
:waterfallTotal (or (:waterfall.total_color viz-settings) (nth colors 0))
:waterfallPositive (or (:waterfall.increase_color viz-settings) (nth colors 1))
:waterfallNegative (or (:waterfall.decrease_color viz-settings) (nth colors 2)))
(assoc :showTotal show-total))
image-bundle (image-bundle/make-image-bundle
render-type
(render-fn rows
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment