Sha256: d1aadc1177cece9aa1ca8a70ba8ba09b08b36155d9a5a9395256cdde0333a6e3

Contents?: true

Size: 431 Bytes

Versions: 9

Compression:

Stored size: 431 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

9 entries across 9 versions & 4 rubygems

Version Path
mojombo-erlectricity-1.0.0 examples/gruff/gruff_run.sh
mojombo-erlectricity-1.0.1 examples/gruff/gruff_run.sh
mojombo-erlectricity-1.0.2 examples/gruff/gruff_run.sh
erlectricity-funbox-1.1.2 examples/gruff/gruff_run.sh
beambridge-0.9.0 examples/gruff/gruff_run.sh
erlectricity-1.1.1 examples/gruff/gruff_run.sh
erlectricity-1.1.0 examples/gruff/gruff_run.sh
erlectricity-1.0.0 examples/gruff/gruff_run.sh
erlectricity-1.0.1 examples/gruff/gruff_run.sh