Skip to content

Instantly share code, notes, and snippets.

View estsauver's full-sized avatar

Earl St Sauver estsauver

View GitHub Profile
class MyController < UIViewController
def viewDidLoad
super
top_view.addSubview chart_view([[0,0], [100,100],
[10, 20, 20, 15, 35],
["#203a65", "#37537c", "#5b7faa", "#aec2d6", "#aec2d6", "#ffffff"]
)
end
def chart_view(frame, data, colors)