vendor/gems/ziya-2.1.7/lib/ziya/charts/base.rb
def gen_chart_data( series )
      block = lambda {
        series[:points].each do |row|      
          if !row
            @xml.null 
          elsif row.instance_of?(Hash)
            # don't side effect the original series
            the_clone = row.clone
            value     = the_clone.delete( :value )
            gen_row_data( value, the_clone, @xml )
          else
            gen_row_data( row, nil, @xml )
          end
        end
      }
      
      if series[:url]
        @xml.row( :url => series[:url], &block )
      else
        @xml.row( &block )
      end
    end
# generates chart data points    
# BOZO !! Check args on hash
generates chart data points
BOZO !. Check args on hash
generates chart data points BOZO ! . Check args on hash
def gen_chart_data( series )
      block = lambda {
        series[:points].each do |row|      
          if !row
            @xml.null 
          elsif row.instance_of?(Hash)
            the_clone = row.clone
            value     = the_clone.delete( :value )
            gen_row_data( value, the_clone, @xml )
          else
            gen_row_data( row, nil, @xml )
          end
        end
      }
      if series[:url]
        @xml.row( :url => series[:url], &block )
      else
        @xml.row( &block )
      end
    end
def gen_chart_data ( series ) block = lambda { series [ :points ] . each do | row | if ! row @xml . null elsif row . instance_of? ( Hash ) the_clone = row . clone value = the_clone . delete ( :value ) gen_row_data ( value , the_clone , @xml ) else gen_row_data ( row , nil , @xml ) end end } if series [ :url ] @xml . row ( :url => series [ :url ] , & block ) else @xml . row ( & block ) end end
generates chart data points
BOZO !
generates chart data points BOZO !
# don't side effect the original series
series