Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: fdfa626150
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (17 sloc) 0.432 kB
#!/usr/bin/env escript
-export([main/1]).
main(_Any) ->
Data = [
{apples, [10, 2, 3, 4, 4, 3]},
{oranges, [4, 8, 7, 9, 8, 9]},
{watermelons, [2, 3, 1, 5, 6, 8]},
{peaches, [9, 9, 10, 8, 7, 9]}
],
gruff:start(),
Result = gruff:plot(
<<"My Charts">>,
<<"/Users/scott/Library/Fonts/Arial">>,
Data,
[{0, <<"2003">>}, {2, <<"2004">>}, {4, <<"2005">>}]
),
file:write_file("out.png", Result).
Jump to Line
Something went wrong with that request. Please try again.