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, #title, #type, #width

Instance Method Summary collapse

Methods inherited from BarChart

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

Constructor Details

#initializeStackedColumn

Returns a new instance of StackedColumn.



69
70
71
# File 'lib/plot_simple.rb', line 69

def initialize
  @type = "stacked"
end

Instance Attribute Details

Returns the value of attribute links.



68
69
70
# File 'lib/plot_simple.rb', line 68

def links
  @links
end

#seriesObject

Returns the value of attribute series.



68
69
70
# File 'lib/plot_simple.rb', line 68

def series
  @series
end

Instance Method Details



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