Class: RailsCharts::CandlestickChart

Inherits:
LineChart show all
Defined in:
lib/rails_charts/candlestick_chart.rb

Constant Summary

Constants inherited from BaseChart

BaseChart::CHART_JS_PATTERN

Instance Attribute Summary

Attributes inherited from BaseChart

#chart_id, #container_id, #data, #debug, #height, #klass, #locale, #options, #other_options, #renderer, #style, #theme, #vertical, #width

Instance Method Summary collapse

Methods inherited from LineChart

#generate_series_options, #initialize, #x, #x_axis, #y, #y_axis

Methods inherited from BaseChart

#axises, #build_options, #initialize, #js_code, #option, #x_axis, #y_axis

Constructor Details

This class inherits a constructor from RailsCharts::LineChart

Instance Method Details

#defaultsObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/rails_charts/candlestick_chart.rb', line 8

def defaults
  {
    tooltip: {
      trigger: 'axis',
      axisPointer: {
        type: 'cross'
      }        
    },
    toolbox: {
      feature: {
        saveAsImage: {}
      },
    }     
  }
end

#typeObject



4
5
6
# File 'lib/rails_charts/candlestick_chart.rb', line 4

def type
  'candlestick'
end