Class: RailsCharts::AreaChart
- Defined in:
- lib/rails_charts/area_chart.rb
Constant Summary
Constants inherited from BaseChart
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, #type, #x, #y, #y_axis
Methods inherited from BaseChart
#axises, #build_options, #initialize, #js_code, #option, #y_axis
Constructor Details
This class inherits a constructor from RailsCharts::LineChart
Instance Method Details
#defaults ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/rails_charts/area_chart.rb', line 4 def defaults { tooltip: { trigger: 'axis' }, xAxis: { boundaryGap: false }, series: { areaStyle: {}, stack: 'Total' }, toolbox: { feature: { saveAsImage: {} }, } } end |
#x_axis ⇒ Object
24 25 26 27 28 |
# File 'lib/rails_charts/area_chart.rb', line 24 def x_axis { type: 'category' } end |