Module: RailsCharts

Defined in:
lib/rails_charts.rb,
lib/rails_charts/engine.rb,
lib/rails_charts/helpers.rb,
lib/rails_charts/version.rb,
lib/rails_charts/ruby_ext.rb,
lib/rails_charts/bar_chart.rb,
lib/rails_charts/pie_chart.rb,
lib/rails_charts/area_chart.rb,
lib/rails_charts/base_chart.rb,
lib/rails_charts/javascript.rb,
lib/rails_charts/line_chart.rb,
lib/rails_charts/donut_chart.rb,
lib/rails_charts/gauge_chart.rb,
lib/rails_charts/radar_chart.rb,
lib/rails_charts/custom_chart.rb,
lib/rails_charts/funnel_chart.rb,
lib/rails_charts/sankey_chart.rb,
lib/rails_charts/scatter_chart.rb,
lib/rails_charts/calendar_chart.rb,
lib/rails_charts/parallel_chart.rb,
lib/rails_charts/candlestick_chart.rb,
lib/rails_charts/stacked_bar_chart.rb

Defined Under Namespace

Modules: Helpers, RubyExt Classes: AreaChart, BarChart, BaseChart, CalendarChart, CandlestickChart, CustomChart, DonutChart, Engine, FunnelChart, GaugeChart, Javascript, LineChart, ParallelChart, PieChart, RadarChart, SankeyChart, ScatterChart, StackedBarChart

Constant Summary collapse

VERSION =
"0.0.6"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.defaultsObject

Returns the value of attribute defaults.



27
28
29
# File 'lib/rails_charts.rb', line 27

def defaults
  @defaults
end

.optionsObject

Returns the value of attribute options.



27
28
29
# File 'lib/rails_charts.rb', line 27

def options
  @options
end

Class Method Details

.js(code) ⇒ Object



29
30
31
# File 'lib/rails_charts.rb', line 29

def js(code)
  RailsCharts::Javascript.new code
end