Module: Nyaplot::Diagrams::Venn
- 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
#area_names ⇒ Array<String>
124
|
# File 'lib/nyaplot/diagram.rb', line 124
define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width])
|
#category ⇒ Symbol
124
|
# File 'lib/nyaplot/diagram.rb', line 124
define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width])
|
#color ⇒ Array<String>
124
|
# File 'lib/nyaplot/diagram.rb', line 124
define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width])
|
#count ⇒ Symbol
124
|
# File 'lib/nyaplot/diagram.rb', line 124
define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width])
|
#filter_control ⇒ Boolean
124
|
# File 'lib/nyaplot/diagram.rb', line 124
define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width])
|
#opacity ⇒ Numeric
124
|
# File 'lib/nyaplot/diagram.rb', line 124
define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width])
|
#stroke_color ⇒ String
124
|
# File 'lib/nyaplot/diagram.rb', line 124
define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width])
|
#stroke_width ⇒ Numeric
124
|
# File 'lib/nyaplot/diagram.rb', line 124
define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width])
|
Instance Method Details
#process_data(df, labels) ⇒ Object
126
127
128
129
130
131
|
# File 'lib/nyaplot/diagram.rb', line 126
def process_data(df, labels)
category(labels[0])
count(labels[1])
@xrange = [0, 10]
@yrange = [0, 10]
end
|
#zoom? ⇒ Boolean
133
134
135
|
# File 'lib/nyaplot/diagram.rb', line 133
def zoom?
false
end
|