Module: Nyaplot::Diagrams::Heatmap

Includes:
Jsonizable
Defined in:
lib/nyaplot/diagram.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Jsonizable

#before_to_json, #get_property, included, #init_properties, #set_property, #to_json

Instance Attribute Details

#colorArray<String>


319
# File 'lib/nyaplot/diagram.rb', line 319

define_group_properties(:options, [:title, :x, :y, :fill, :width, :height, :color, :stroke_color, :stroke_width, :hover])

#fillSymbol


319
# File 'lib/nyaplot/diagram.rb', line 319

define_group_properties(:options, [:title, :x, :y, :fill, :width, :height, :color, :stroke_color, :stroke_width, :hover])

#heightString


319
# File 'lib/nyaplot/diagram.rb', line 319

define_group_properties(:options, [:title, :x, :y, :fill, :width, :height, :color, :stroke_color, :stroke_width, :hover])

#hoverBoolean


319
# File 'lib/nyaplot/diagram.rb', line 319

define_group_properties(:options, [:title, :x, :y, :fill, :width, :height, :color, :stroke_color, :stroke_width, :hover])

#stroke_colorString


319
# File 'lib/nyaplot/diagram.rb', line 319

define_group_properties(:options, [:title, :x, :y, :fill, :width, :height, :color, :stroke_color, :stroke_width, :hover])

#stroke_widthNumeric


319
# File 'lib/nyaplot/diagram.rb', line 319

define_group_properties(:options, [:title, :x, :y, :fill, :width, :height, :color, :stroke_color, :stroke_width, :hover])

#titleString


319
# File 'lib/nyaplot/diagram.rb', line 319

define_group_properties(:options, [:title, :x, :y, :fill, :width, :height, :color, :stroke_color, :stroke_width, :hover])

#widthString


319
# File 'lib/nyaplot/diagram.rb', line 319

define_group_properties(:options, [:title, :x, :y, :fill, :width, :height, :color, :stroke_color, :stroke_width, :hover])

#xSymbol


319
# File 'lib/nyaplot/diagram.rb', line 319

define_group_properties(:options, [:title, :x, :y, :fill, :width, :height, :color, :stroke_color, :stroke_width, :hover])

#ySymbol


319
# File 'lib/nyaplot/diagram.rb', line 319

define_group_properties(:options, [:title, :x, :y, :fill, :width, :height, :color, :stroke_color, :stroke_width, :hover])

Instance Method Details

#process_data(df, labels) ⇒ Object


321
322
323
324
325
326
327
328
329
330
# File 'lib/nyaplot/diagram.rb', line 321

def process_data(df, labels)
  label_x = labels[0]
  label_y = labels[1]
  label_fill = labels[2]
  x(label_x)
  y(label_y)
  fill(label_fill)
  @xrange = [df[label_x].to_a.min, df[label_x].to_a.max]
  @yrange = [df[label_y].to_a.min, df[label_y].to_a.max]
end

#zoom?Boolean


332
333
334
# File 'lib/nyaplot/diagram.rb', line 332

def zoom?
  true
end