View on

Example: barcharts/vertical_ranges

Output File:

Source File:

width: 1280px;
height: 480px;

scale-y-max: 75;
scale-y-min: -25;

scale-x-padding: 0.5;

bars {
  xs: csv(tests/testdata/bardata.csv, var0);
  ys: csv(tests/testdata/bardata.csv, var1);
  y-offsets: csv(tests/testdata/bardata.csv, var2);
  size: 1.8em;
  offset: -1.2em;
  color: #4572a7;
}

bars {
  xs: csv(tests/testdata/bardata.csv, var0);
  ys: csv(tests/testdata/bardata.csv, var4);
  y-offsets: csv(tests/testdata/bardata.csv, var5);
  size: 1.8em;
  offset: 1.2em;
  color: #aa4643;
}

axis {
  position: left;
  layout: linear(10, align -20);
}

axis {
  position: right;
  layout: linear(10, align -20);
}

axis {
  position: top;
  layout: discrete;
  labels: A, B, C, D, E, F;
}

axis {
  position: bottom;
  layout: discrete;
  labels: A, B, C, D, E, F;
}

Run this example:

$ plotfx --in examples/barcharts/vertical_ranges.ptx --out output.svg
Edit this page on GitHub