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, #template, #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, #setTemplate, #setTitle, #setWidth
Constructor Details
#initialize ⇒ StackedColumn
Returns a new instance of StackedColumn.
74 75 76 |
# File 'lib/plot_simple.rb', line 74 def initialize @type = "stacked" end |
Instance Attribute Details
#links ⇒ Object
Returns the value of attribute links.
73 74 75 |
# File 'lib/plot_simple.rb', line 73 def links @links end |
#series ⇒ Object
Returns the value of attribute series.
73 74 75 |
# File 'lib/plot_simple.rb', line 73 def series @series end |
Instance Method Details
#addLinks(links) ⇒ Object
83 84 85 |
# File 'lib/plot_simple.rb', line 83 def addLinks(links) @links = links end |
#addSeries(series) ⇒ Object
78 79 80 81 |
# File 'lib/plot_simple.rb', line 78 def addSeries(series) @series ||= [] @series << series end |