class Charts::CircleCountChart
Public Instance Methods
draw_item(x, y, color)
click to toggle source
# File lib/charts/count_chart/circle_count_chart.rb, line 2 def draw_item(x, y, color) cx = x + item_width / 2 cy = y + item_height / 2 radius = item_width / 2 renderer.circle cx, cy, radius, fill: color end