View on

Example: areacharts/simple_area

Output File:

Source File:

width: 1200px;
height: 280px;

scale-x-padding: 0.5;

scale-y-layout: linear(20, align 20);

gridlines {}

areas {
  xs: csv('tests/testdata/measurement.csv', time);
  ys: csv('tests/testdata/measurement.csv', value2);
  color: #4572a7;
}

axis {
  position: top;
  format: datetime("%H:%M:%S");
}

axis {
  position: bottom;
  format: datetime("%H:%M:%S");
}

axis {
  position: left;
}

axis {
  position: right;
}

Run this example:

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