module PillChart

Public Instance Methods

draw_pill_chart(height: 10, width: 60, value: 33, max: 100, colors: {}) click to toggle source
# 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: {}) click to toggle source
# 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