Module: PillChart
- Defined in:
- lib/pill_chart/simple_pill_chart.rb
Defined Under Namespace
Classes: SimplePillChart
Instance Method Summary collapse
- #draw_pill_chart(height: 10, width: 60, value: 33, max: 100, colors: {}) ⇒ Object
- #draw_state_pill_chart(height: 10, width: 60, value: 33, max: 100, colors: {}) ⇒ Object
Instance Method Details
#draw_pill_chart(height: 10, width: 60, value: 33, max: 100, colors: {}) ⇒ Object
3 4 5 6 7 |
# File 'lib/pill_chart/simple_pill_chart.rb', line 3 def draw_pill_chart(height: 10, width: 60, value: 33, max: 100, colors: {}) elt = PillChart::SimplePillChart.new(height, width, value, max, :simple, colors) elt.pill end |
#draw_state_pill_chart(height: 10, width: 60, value: 33, max: 100, colors: {}) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/pill_chart/simple_pill_chart.rb', line 9 def draw_state_pill_chart(height: 10, width: 60, value: 33, max: 100, colors: {}) elt = PillChart::SimplePillChart.new(height, width, value, max, :state, colors) elt.pill end |