the negative_color option for the Currency value formatter has no effect,
I fixed it like so:
in components/value_markers.rb
CHANGE: (around line 18)
marker_value = options[:value_formatter].route_format(marker_value, idx, options.merge({:all_values => all_values}))
if options[:value_formatter]
TO:
options[:all_values] = all_values
marker_value = options[:value_formatter].route_format(marker_value, idx, options) if options[:value_formatter]
Problem was options.merge returns a copy of the options hash, so down below where it does an
options.delete(:marker_color_override) always fails because the formatter passes that back by updating the options hash.
|