vendor/gems/ziya-2.1.7/lib/ziya/charts/base.rb
# generates chart data row
# TODO Validate options !!
generates chart data row
TODO Validate options
generates chart data row TODO Validate options
def gen_row_data( value, opts=nil, xml=@xml )
      if value.instance_of? String
        gen_string_data( value, opts, xml )
      elsif value.respond_to? :zero?
        gen_number_data( value, opts, xml )
      else
        xml.null
      end        
    end
def gen_row_data ( value , opts = nil , xml = @xml ) if value . instance_of? String gen_string_data ( value , opts , xml ) elsif value . respond_to? :zero? gen_number_data ( value , opts , xml ) else xml . null end end
generates chart data row
TODO Validate options !
generates chart data row TODO Validate options !
value
opts
xml