changelog shortlog tags changeset files revisions annotate raw

examples/vbar_chart

changeset 65: b22bc4a44f8d
parent:c0e3672508cf
child:3a19cb44ebdf
author: Nicolas Évrard <nicoe@openhex.org>
date: Wed Sep 10 11:22:09 2008 +0200 (9 months ago)
permissions: -rw-r--r--
description: Added tag 0.4.0 for changeset a8fb9b03615b
1options:
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 %}
20chart:
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 %}