plugins/resource_management/app/helpers/resource_management/resource_bar_helper.rb
#     data_type:     Core::DataType                 - If given, render values with its format() method.
#     warning_level: NUMBER                         - A number between 0 and 1. Beyond this ratio, fill levels will be rendered in warning color (default 0.8).
#     danger_level: NUMBER                          - A number from 1 to N. Beyond this number, fill levels will be rendered in danger color (default 1.0).
# The hash arguments (fill, maximum, threshold) can also be given as a single number. Then the label is just the display value.
#
# The relation of usage to threshold determines the color of the usage display.
# The threshold is not shown if it is larger than the maximum.
# If the threshold is not given, the maximum value is used for the threshold, but without displaying it as threshold.
# In all the label fields, a placeholder of $VALUE will be replaced with the value.
:DataType                 - If given, render values with its format() method.
warning_level: NUMBER                         - A number between 0 and 1. Beyond this ratio, fill levels will be rendered in warning color (default 0.8).
danger_level: NUMBER                          - A number from 1 to N. Beyond this number, fill levels will be rendered in danger color (default 1.0).
The hash arguments (fill, maximum, threshold) can also be given as a single number. Then the label is just the display value.

The relation of usage to threshold determines the color of the usage display.
The threshold is not shown if it is larger than the maximum.
If the threshold is not given, the maximum value is used for the threshold, but without displaying it as threshold.
In all the label fields, a placeholder of $VALUE will be replaced with the value.
: DataType - If given render values with its format () method . warning_level : NUMBER - A number between 0 and 1 . Beyond this ratio fill levels will be rendered in warning color ( default 0 . 8 ) . danger_level : NUMBER - A number from 1 to N . Beyond this number fill levels will be rendered in danger color ( default 1 . 0 ) . The hash arguments ( fill maximum threshold ) can also be given as a single number . Then the label is just the display value . The relation of usage to threshold determines the color of the usage display . The threshold is not shown if it is larger than the maximum . If the threshold is not given the maximum value is used for the threshold but without displaying it as threshold . In all the label fields a placeholder of $VALUE will be replaced with the value .
def resource_bar(options = {})
      options.delete(:threshold) if options[:threshold] == 0
      options.delete(:threshold) if options[:threshold].is_a?(Hash) &&  options[:threshold][:value] == 0
      fill, maximum, threshold, upper_bound, warning_level, danger_level, marker = resbar_prepare_options(options)
      bars = resbar_compile_bars(fill, maximum, threshold, warning_level, danger_level, marker)
      return render('resource_bar_helper',
        bars:        bars,
        maximum:     maximum,
        threshold:   threshold,
        upper_bound: upper_bound,
        marker:      marker,
      )
    end
def resource_bar ( options = { } ) options . delete ( :threshold ) if options [ :threshold ] == 0 options . delete ( :threshold ) if options [ :threshold ] . is_a? ( Hash ) && options [ :threshold ] [ :value ] == 0 fill , maximum , threshold , upper_bound , warning_level , danger_level , marker = resbar_prepare_options ( options ) bars = resbar_compile_bars ( fill , maximum , threshold , warning_level , danger_level , marker ) return render ( 'resource_bar_helper' , bars : bars , maximum : maximum , threshold : threshold , upper_bound : upper_bound , marker : marker , ) end
data_type:     Core::DataType                 - If given, render values with its format() method.
data_type : Core :: DataType - If given render values with its format () method .
# delete threshold if value is 0
options
<not_specific>