View on

Example: charts-basic/barchart_groups

Output File:

Source File:

(set height 240px)
(set width 960px)

(plot
    axes (right bottom left)
    scale-x (categorical (A B C D E F))
    limit-y (0 80)
    axis-y-label-placement (linear-interval 10 10 70)
    bars (
      data-x (csv "tests/testdata/bardata.csv" var3)
      data-y (csv "tests/testdata/bardata.csv" var1)
      bar-width (1em)
      bar-offset (-.8em)
      color #444)
    bars (
      data-x (csv "tests/testdata/bardata.csv" var3)
      data-y (csv "tests/testdata/bardata.csv" var2)
      bar-width (1em)
      bar-offset (.8em)
      color #999)
    border none
    background #eee
    grid (color #fff))

Run this example:

$ fviz --in examples/charts-basic/barchart_groups.fvz --out output.svg
Edit this page on GitHub