Areas with lines

10.0 15.7 21.4 27.1 32.9 38.6 44.3 50.0 -50.0 -35.7 -21.4 -7.14 7.14 21.4 35.7 50.0 10.0 15.7 21.4 27.1 32.9 38.6 44.3 50.0 -50.0 -35.7 -21.4 -7.14 7.14 21.4 35.7 50.0

SQL source code for this example:

IMPORT TABLE example_data
   FROM 'csv:examples/data/areadata2.csv?headers=true';

DRAW AREACHART WITH
   AXIS LEFT
   AXIS BOTTOM
   YDOMAIN -50, 50;

SELECT
      series AS series,
      x AS x,
      y AS y,
      z AS z
   FROM example_data
   WHERE series = "series2" or series = "series1";

DRAW LINECHART
   AXIS TOP
   AXIS RIGHT
   YDOMAIN -50, 50;

SELECT
      series AS series,
      x AS x,
      y AS y,
      "black" as color,
      "circle" as pointstyle
   FROM example_data
   WHERE series = "series3";

Run this example:

$ fnordmetric-cli --format=svg examples/combined/arearange_and_line.sql