Module: Nyaplot::Diagrams::Vectors
- 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
#color ⇒ Array<String>
204
|
# File 'lib/nyaplot/diagram.rb', line 204
define_group_properties(:options, [:title, :x, :y, :dx, :dy, :fill_by, :color, :stroke_color, :stroke_width, :hover])
|
#dx ⇒ Symbol
204
|
# File 'lib/nyaplot/diagram.rb', line 204
define_group_properties(:options, [:title, :x, :y, :dx, :dy, :fill_by, :color, :stroke_color, :stroke_width, :hover])
|
#dy ⇒ Symbol
204
|
# File 'lib/nyaplot/diagram.rb', line 204
define_group_properties(:options, [:title, :x, :y, :dx, :dy, :fill_by, :color, :stroke_color, :stroke_width, :hover])
|
#fill_by ⇒ Symbol
204
|
# File 'lib/nyaplot/diagram.rb', line 204
define_group_properties(:options, [:title, :x, :y, :dx, :dy, :fill_by, :color, :stroke_color, :stroke_width, :hover])
|
#hover ⇒ Boolean
204
|
# File 'lib/nyaplot/diagram.rb', line 204
define_group_properties(:options, [:title, :x, :y, :dx, :dy, :fill_by, :color, :stroke_color, :stroke_width, :hover])
|
#stroke_color ⇒ String
204
|
# File 'lib/nyaplot/diagram.rb', line 204
define_group_properties(:options, [:title, :x, :y, :dx, :dy, :fill_by, :color, :stroke_color, :stroke_width, :hover])
|
#stroke_width ⇒ Numeric
204
|
# File 'lib/nyaplot/diagram.rb', line 204
define_group_properties(:options, [:title, :x, :y, :dx, :dy, :fill_by, :color, :stroke_color, :stroke_width, :hover])
|
#title ⇒ String
204
|
# File 'lib/nyaplot/diagram.rb', line 204
define_group_properties(:options, [:title, :x, :y, :dx, :dy, :fill_by, :color, :stroke_color, :stroke_width, :hover])
|
#x ⇒ Symbol
204
|
# File 'lib/nyaplot/diagram.rb', line 204
define_group_properties(:options, [:title, :x, :y, :dx, :dy, :fill_by, :color, :stroke_color, :stroke_width, :hover])
|
#y ⇒ Symbol
204
|
# File 'lib/nyaplot/diagram.rb', line 204
define_group_properties(:options, [:title, :x, :y, :dx, :dy, :fill_by, :color, :stroke_color, :stroke_width, :hover])
|
Instance Method Details
#process_data(df, labels) ⇒ Object
206
207
208
209
210
211
212
213
|
# File 'lib/nyaplot/diagram.rb', line 206
def process_data(df, labels)
label_x = labels[0]
label_y = labels[1]
x(label_x)
y(label_y)
@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
215
216
217
|
# File 'lib/nyaplot/diagram.rb', line 215
def zoom?
true
end
|