Class: PlainBar
- Inherits:
-
MyChart::Proto
- Object
- MyChart::Proto
- PlainBar
- Defined in:
- lib/my_chart/charts/plain_bar.rb
Instance Attribute Summary
Attributes inherited from MyChart::Proto
Instance Method Summary collapse
Methods inherited from MyChart::Proto
#concrete_style, #datasets, #default_html, #diff_color_on_x, #diff_color_on_z, #has_z?, #height, #iife, #initialize, #json, #labels, no_z_axis, #no_z_axis?, #options, same_color_on_x, #styled_datasets, #title, #type, #width
Constructor Details
This class inherits a constructor from MyChart::Proto
Instance Method Details
#concrete_options ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/my_chart/charts/plain_bar.rb', line 9 def opt = { scales: { yAxes: [{ ticks: { beginAtZero:true } }] } } opt.merge!({legend: {display: false}}) unless has_z? opt end |
#concrete_type ⇒ Object
5 6 7 |
# File 'lib/my_chart/charts/plain_bar.rb', line 5 def concrete_type :bar end |