Class: PlotSimple::Charts::StackedColumn

Inherits:
BarChart
  • Object
show all
Defined in:
lib/plot_simple.rb

Instance Attribute Summary collapse

Attributes inherited from BarChart

#backgroundImage, #background_color, #borderColor, #categories, #height, #lineColor, #pointLabels, #seriesColors, #template, #title, #type, #width

Instance Method Summary collapse

Methods inherited from BarChart

#addCategory, #addSeriesColor, #setBackgroundColor, #setBackgroundImage, #setBorderColor, #setHeight, #setLineColor, #setTemplate, #setTitle, #setWidth

Constructor Details

#initializeStackedColumn

Returns a new instance of StackedColumn.



74
75
76
# File 'lib/plot_simple.rb', line 74

def initialize
  @type = "stacked"
end

Instance Attribute Details

Returns the value of attribute links.



73
74
75
# File 'lib/plot_simple.rb', line 73

def links
  @links
end

#seriesObject

Returns the value of attribute series.



73
74
75
# File 'lib/plot_simple.rb', line 73

def series
  @series
end

Instance Method Details



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