Class: RailsCharts::ScatterChart
- Defined in:
- lib/rails_charts/scatter_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
-
#defaults ⇒ Object
def generate_series_options { data: data, type: type, } end.
- #type ⇒ Object
- #x_axis ⇒ Object
- #y_axis ⇒ Object
Methods inherited from LineChart
#generate_series_options, #initialize, #x, #y
Methods inherited from BaseChart
#axises, #build_options, #initialize, #js_code, #option
Constructor Details
This class inherits a constructor from RailsCharts::LineChart
Instance Method Details
#defaults ⇒ Object
def generate_series_options
{
data: data,
type: type,
}
end
15 16 17 18 19 20 21 22 23 |
# File 'lib/rails_charts/scatter_chart.rb', line 15 def defaults { xAxis: {}, yAxis: {}, tooltip: { formatter: '{c}' }, } end |
#type ⇒ Object
4 5 6 |
# File 'lib/rails_charts/scatter_chart.rb', line 4 def type 'scatter' end |
#x_axis ⇒ Object
25 26 27 |
# File 'lib/rails_charts/scatter_chart.rb', line 25 def x_axis {} end |
#y_axis ⇒ Object
29 30 31 |
# File 'lib/rails_charts/scatter_chart.rb', line 29 def y_axis {} end |