Commit fd794f77 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

update areachart test cases

parent 368e9023
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -51,12 +51,10 @@ ReturnCode environment_set(Environment* env, const Expr* expr) {
  }

  if (expr_is_value(args[0], "height")) {
    return OK;
    return expr_to_measure(args[1], &env->screen_height);
  }

  if (expr_is_value(args[0], "dpi")) {
    return OK;
    return expr_to_float64(args[1], &env->dpi);
  }

+0 −37
Original line number Diff line number Diff line
width: 1200px;
height: 480px;

scale-y-min: -50;
scale-y-max: 50;

areas {
  xs: csv('tests/testdata/areadata2.csv', x);
  ys: csv('tests/testdata/areadata2.csv', z);
  y-offsets: csv('tests/testdata/areadata2.csv', y);
  color: #4572a7;
}

areas {
  xs: csv('tests/testdata/areadata2.csv', x);
  ys: csv('tests/testdata/areadata2.csv', z2);
  y-offsets: csv('tests/testdata/areadata2.csv', y2);
  color: #aa4643;
}

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

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

axis {
  position: left;
}

axis {
  position: right;
}
+0 −34
Original line number Diff line number Diff line
width: 1200px;
height: 480px;

scale-y-min: 0;
scale-y-max: 60;
scale-y-layout: linear(10, align 10);

areas {
  xs: csv('tests/testdata/areadata.csv', x);
  ys: csv('tests/testdata/areadata.csv', y);
  color: #4572a7;
}

points {
  xs: csv('tests/testdata/areadata.csv', x);
  ys: csv('tests/testdata/areadata.csv', y);
  color: #4572a7;
}

axis {
  position: top;
}

axis {
  position: bottom;
}

axis {
  position: left;
}

axis {
  position: right;
}
+0 −49
Original line number Diff line number Diff line
width: 1200px;
height: 480px;

scale-y-min: -50;
scale-y-max: 50;

areas {
  xs: csv('tests/testdata/areadata2.csv', x);
  ys: csv('tests/testdata/areadata2.csv', z);
  y-offsets: csv('tests/testdata/areadata2.csv', y);
  color: #4572a7;
}

areas {
  xs: csv('tests/testdata/areadata2.csv', x);
  ys: csv('tests/testdata/areadata2.csv', z2);
  y-offsets: csv('tests/testdata/areadata2.csv', y2);
  color: #aa4643;
}

lines {
  xs: 10, 15, 20, 30, 40, 50;
  ys: 4,  8,  13, 2,  1,  9;
  color: #000;
}

points {
  xs: 10, 15, 20, 30, 40, 50;
  ys: 4,  8,  13, 2,  1,  9;
  color: #000;
}

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

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

axis {
  position: left;
}

axis {
  position: right;
}
+0 −32
Original line number Diff line number Diff line
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;
}
Loading