Class: PlotSimple::Charts::StackedColumn
- Defined in:
- lib/plot_simple.rb
Instance Attribute Summary collapse
-
#links ⇒ Object
Returns the value of attribute links.
-
#series ⇒ Object
Returns the value of attribute series.
Attributes inherited from BarChart
#backgroundImage, #background_color, #borderColor, #categories, #height, #lineColor, #pointLabels, #seriesColors, #title, #type, #width
Instance Method Summary collapse
- #addLinks(links) ⇒ Object
- #addSeries(series) ⇒ Object
-
#initialize ⇒ StackedColumn
constructor
A new instance of StackedColumn.
Methods inherited from BarChart
#addCategory, #addSeriesColor, #setBackgroundColor, #setBackgroundImage, #setBorderColor, #setHeight, #setLineColor, #setTitle, #setWidth
Constructor Details
#initialize ⇒ StackedColumn
Returns a new instance of StackedColumn.
69 70 71 |
# File 'lib/plot_simple.rb', line 69 def initialize @type = "stacked" end |
Instance Attribute Details
#links ⇒ Object
Returns the value of attribute links.
68 69 70 |
# File 'lib/plot_simple.rb', line 68 def links @links end |
#series ⇒ Object
Returns the value of attribute series.
68 69 70 |
# File 'lib/plot_simple.rb', line 68 def series @series end |
Instance Method Details
#addLinks(links) ⇒ Object
78 79 80 |
# File 'lib/plot_simple.rb', line 78 def addLinks(links) @links = links end |
#addSeries(series) ⇒ Object
73 74 75 76 |
# File 'lib/plot_simple.rb', line 73 def addSeries(series) @series ||= [] @series << series end |