File: line_chart

package info (click to toggle)
relatorio 0.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,600 kB
  • sloc: python: 1,945; sh: 10; makefile: 9
file content (27 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
options:
  width: 600
  height: 500
  legend: 
    hide: false
    position: 
      right: 40
  padding: {bottom: 70, left: 70, right: 10, top: 10}
  axis:
    y:
      interval: 10
      padding: 10
    x:
      ticks:
      {% for idx, line in enumerate(o.lines) %}
        - v: $idx
          label: $line.item.name
      {% end %}
chart:
  type: line
  output_type: png
  dataset:
    - - Sales
      -
      {% for idx, line in enumerate(o.lines) %}
        - [$idx, $line.amount]
      {% end %}