Sha256: 49461a672bc8fa9f55a90ba83913e04142df2e13f530fd039a6c1f5630090088

Contents?: true

Size: 432 Bytes

Versions: 5

Compression:

Stored size: 432 Bytes

Contents

#!/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).

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
mojombo-erlectricity-0.2.1 examples/gruff/gruff_run.erl
tmm1-erlectricity-0.2.1 examples/gruff/gruff_run.erl
erlectricity-0.2.0 examples/gruff/gruff_run.erl
erlectricity-0.1.0 examples/gruff/gruff_run.erl
erlectricity-0.2.1 examples/gruff/gruff_run.erl