Module: Nyaplot::Diagrams::Venn
- Includes:
- Jsonizable
- Defined in:
- lib/nyaplot/diagram.rb
Instance Attribute Summary collapse
-
#area_names ⇒ Array<String>
Names of 3 groups.
-
#category ⇒ Symbol
The column label from which the venn diagram is created.
-
#color ⇒ Array<String>
The array of color codes.
-
#count ⇒ Symbol
The column label from which the venn diagram is created.
-
#filter_control ⇒ Boolean
Boolean to decide whether to display filter control.
-
#opacity ⇒ Numeric
The opacity of circles.
-
#stroke_color ⇒ String
Color code.
-
#stroke_width ⇒ Numeric
The width of stroke.
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>
Returns names of 3 groups.
128 |
# File 'lib/nyaplot/diagram.rb', line 128 define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width]) |
#category ⇒ Symbol
Returns the column label from which the venn diagram is created.
128 |
# File 'lib/nyaplot/diagram.rb', line 128 define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width]) |
#color ⇒ Array<String>
Returns the array of color codes.
128 |
# File 'lib/nyaplot/diagram.rb', line 128 define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width]) |
#count ⇒ Symbol
Returns the column label from which the venn diagram is created.
128 |
# File 'lib/nyaplot/diagram.rb', line 128 define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width]) |
#filter_control ⇒ Boolean
Returns Boolean to decide whether to display filter control.
128 |
# File 'lib/nyaplot/diagram.rb', line 128 define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width]) |
#opacity ⇒ Numeric
Returns the opacity of circles.
128 |
# File 'lib/nyaplot/diagram.rb', line 128 define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width]) |
#stroke_color ⇒ String
Returns color code.
128 |
# File 'lib/nyaplot/diagram.rb', line 128 define_group_properties(:options, [:title, :category, :count, :area_names, :filter_control, :opacity, :color, :stroke_color, :stroke_width]) |
#stroke_width ⇒ Numeric
Returns the width of stroke.
128 |
# File 'lib/nyaplot/diagram.rb', line 128 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
130 131 132 133 134 135 |
# File 'lib/nyaplot/diagram.rb', line 130 def process_data(df, labels) category(labels[0]) count(labels[1]) @xrange = [0, 10] @yrange = [0, 10] end |
#zoom? ⇒ Boolean
137 138 139 |
# File 'lib/nyaplot/diagram.rb', line 137 def zoom? false end |