relatorio
view examples/vbar_chart @ 65:b22bc4a44f8d
Added tag 0.4.0 for changeset a8fb9b03615b
| author | Nicolas Évrard <nicoe@openhex.org> |
|---|---|
| date | Wed Sep 10 11:22:09 2008 +0200 (18 months ago) |
| parents | c0e3672508cf |
| children | 3a19cb44ebdf |
line source
1 options:
2 width: 600
3 height: 500
4 output_type: svg
5 legend:
6 hide: false
7 position:
8 right: 40
9 padding: {bottom: 70, left: 70, right: 10, top: 10}
10 axis:
11 y:
12 interval: 20
13 padding: 5
14 x:
15 ticks:
16 {% for idx, line in enumerate(o.lines) %}
17 - v: $idx
18 label: $line.item.name
19 {% end %}
20 chart:
21 type: vbar
22 dataset:
23 - - Sales
24 -
25 {% for idx, line in enumerate(o.lines) %}
26 - [$idx, $line.amount]
27 {% end %}
28 - - Absolute sales
29 -
30 {% for idx, line in enumerate(o.lines) %}
31 - [$idx, ${abs(line.amount)}]
32 {% end %}
