class GerbilCharts::Charts::MatrixChart
Matrix Chart
Public Class Methods
new(opt={})
click to toggle source
Calls superclass method
GerbilCharts::Charts::ChartBase::new
# File lib/gerbilcharts/charts/matrix_chart.rb, line 7 def initialize(opt={}) super(opt) end
Public Instance Methods
create_chart_elements()
click to toggle source
# File lib/gerbilcharts/charts/matrix_chart.rb, line 12 def create_chart_elements # filters if required @thechart.create_filter(GerbilCharts::SVGDC::LinearGradientVertical.new("vertgrad","rgb(255,255,255)","rgb(224,224,224)")) # additional filter by name @thechart.create_filter(GerbilCharts::SVGDC::LikeButton.new('LikeButton')) if @gerbilfilter == 'LikeButton' # other elements @thechart.add_child(GerbilCharts::Surfaces::SurfaceBackground.new(:orient => ORIENT_OVERLAY)) @thechart.add_child(GerbilCharts::Surfaces::TitlePanel.new(:orient => ORIENT_NORTH, :dim => 30)) @thechart.add_child(GerbilCharts::Surfaces::MatrixSurface.new(:orient => ORIENT_OVERLAY), :anchor => true) end