Class: GoogleVisualr::Interactive::BarChart

Inherits:
BaseChart
  • Object
show all
Includes:
Packages::CoreChart
Defined in:
lib/google_visualr/interactive/bar_chart.rb

Overview

Constant Summary

Constants inherited from BaseChart

BaseChart::DEFAULT_VERSION

Instance Attribute Summary

Attributes inherited from BaseChart

#data_table, #language, #listeners, #material, #version

Instance Method Summary collapse

Methods inherited from BaseChart

#add_listener, #chart_class, #chart_function_name, #class_name, #draw_js, #initialize, #load_js, #options, #options=, #to_js

Methods included from ParamHelpers

#js_parameters, #stringify_keys!, #typecast

Constructor Details

This class inherits a constructor from GoogleVisualr::BaseChart

Instance Method Details

#chart_nameObject



16
17
18
19
20
21
22
# File 'lib/google_visualr/interactive/bar_chart.rb', line 16

def chart_name
  if material
    "Bar"
  else
    super
  end
end

#package_nameObject



8
9
10
11
12
13
14
# File 'lib/google_visualr/interactive/bar_chart.rb', line 8

def package_name
  if material
    "bar"
  else
    super
  end
end