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

update demo.ptx

parent 7b9adae6
Loading
Loading
Loading
Loading
+245 −27
Original line number Diff line number Diff line
width: 1920px;
height: 1200px;
width: 1770px;
height: 1150px;

margin: 2pt;

@@ -11,24 +11,31 @@ border-left-width: 4px;
box {
  position: top;
  height: 100px;
  background-color: #eee;
  border-bottom-width: 1px;
  border-bottom-color: #ccc;
}

box {
  position: right;
  width: 570px;

  margin-top: 2em;
  margin-left: 1em;
  width: 480px;

  border-left-width: 1px;
  border-left-color: #ccc;

  box {
    position: top;
    height: 400px;
    height: 100px;
    border-bottom-width: 1px;
    border-bottom-color: #ccc;
  }

  box {
    position: top;
    height: 350px;
    margin: 1em;

    border-bottom-width: 1px;
    border-bottom-color: #ccc;

    scale-y-min: 0;
    scale-y-max: 140;
@@ -38,7 +45,9 @@ box {
    scale-x-min: -60;
    scale-x-max: 60;

    gridlines {}
    box {
      background-color: #fff;
    }

    points {
      xs: csv('tests/testdata/point_example.csv', x);
@@ -49,10 +58,14 @@ box {
      size: 2pt;
    }

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

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

    axis {
@@ -70,23 +83,41 @@ box {

  box {
    position: top;
    height: 400px;
    height: 350px;

    margin: 1em;

    scale-y-min: 0;
    scale-y-max: 140;

    scale-y-max: 60;
    scale-y-min: -40;
    scale-x-min: -60;
    scale-x-max: 60;

    box {
      background-color: #fff;
    }

    gridlines {}

    areas {
      xs: csv('tests/testdata/measurement.csv', time);
      ys: csv('tests/testdata/measurement.csv', value2);
      colors: #06c;
    points {
      xs: csv('tests/testdata/point_example.csv', x);
      ys: csv('tests/testdata/point_example.csv', y);
      sizes: csv('tests/testdata/point_example.csv', z);
      labels: csv('tests/testdata/point_example.csv', z);
      colors: #4572a7, #aa4643;
      size: 2pt;
    }

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

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

    axis {
@@ -101,6 +132,49 @@ box {
      layout: linear(20);
    }
  }

  box {
    border-top-color: #ccc;
    border-top-width: 1px;
    height: 350px;
    position: bottom;

    margin: 1em;

    scale-y-min: 0;
    scale-y-max: 30;
    scale-x-padding: 0.6;

    bars {
      xs: csv(tests/testdata/city_temperatures_london.csv, month);
      ys: csv(tests/testdata/city_temperatures_london.csv, temperature);
      size: 2em;
      color: #4572a7;
    }

    axis {
      position: left;
      layout: linear(5);
    }

    axis {
      position: right;
      layout: linear(5);
    }

    axis {
      position: top;
      layout: linear(1, align 1);
      labels: csv(tests/testdata/city_temperatures_london.csv, month_name);
    }

    axis {
      position: bottom;
      layout: linear(1, align 1);
      labels: csv(tests/testdata/city_temperatures_london.csv, month_name);
    }

  }
}

box {
@@ -114,7 +188,7 @@ box {
  border-bottom-color: #ccc;

  box {
    width: 460px;
    width: 440px;
    position: left;

    margin-left: .75em;
@@ -163,7 +237,7 @@ box {
  }

  box {
    width: 400px;
    width: 380px;
    position: left;

    margin-left: .75em;
@@ -207,7 +281,7 @@ box {
  }

  box {
    width: 460px;
    width: 440px;
    position: left;

    margin-left: .75em;
@@ -251,8 +325,8 @@ box {

box {
  position: top;
  height: 280px;
  width: 1320px;
  height: 200px;
  width: 1260px;
  margin-top: 1em;

  scale-y-min: 0;
@@ -267,7 +341,6 @@ box {
  axis {
    position: top;
    format: datetime("%H:%M:%S");
    height: 60px;
  }

  axis {
@@ -285,8 +358,8 @@ box {

box {
  position: top;
  height: 220px;
  width: 1320px;
  height: 140px;
  width: 1260px;
  margin-top: 1em;

  scale-y-min: 0;
@@ -313,14 +386,14 @@ box {

box {
  position: top;
  height: 280px;
  width: 1320px;
  height: 200px;
  width: 1260px;
  margin-top: 1em;

  scale-y-min: 0;
  scale-y-max: 140;

  areas {
  lines {
    xs: csv('tests/testdata/measurement.csv', time);
    ys: csv('tests/testdata/measurement.csv', value2);
    colors: #06c;
@@ -346,3 +419,148 @@ box {

}

box {
  height: 250px;

  position: top;
  margin-top: 1em;
  margin-bottom: 1em;

  border-top-width: 1px;
  border-top-color: #ccc;

  box {
    width: 440px;
    position: left;

    margin-left: .75em;

    scale-y-min: 0;
    scale-y-max: 55;
    scale-x-min: -3.5;
    scale-x-max: 3.5;

    bars {
      xs: -3, -2, -1, 0, 1, 2, 3;
      ys: 10, 28, 20, 26, 41, 44, 37;
      size: .6em;
      offset: .45em;
      color: #4572a7;
    }

    bars {
      xs: -3, -2, -1, 0, 1, 2, 3;
      ys: 12, 19, 23, 30, 35, 43, 33;
      size: .6em;
      offset: -.45em;
      color: #aa4643;
    }

    legend {
      position: top left inside;
      items: A, B;
      colors: #4572a7, #aa4643;
    }

    axis {
      position: bottom;
      layout: linear(1, align -3);
    }

    axis {
      position: top;
    }

    axis {
      position: left;
      width: 60px;
      layout: linear(10);
    }
  }

  box {
    width: 380px;
    position: left;

    margin-left: .75em;
    margin-right: .75em;

    scale-x-padding: 0.5;
    scale-y-min: 5;
    scale-y-max: 60;

    areas {
      xs: 0, 1, 2, 3, 4, 5, 6;
      ys: 10, 28, 20, 26, 41, 44, 37;
      size: .6em;
      offset: .45em;
      color: #4572a7;
    }

    areas {
      xs: 0, 1, 2, 3, 4, 5, 6;
      ys: 8, 19, 16, 23, 35, 29, 33;
      size: .6em;
      offset: -.45em;
      color: #aa4643;
    }

    legend {
      position: top left inside;
      items: A, B;
      colors: #4572a7, #aa4643;
    }

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

    axis {
      position: top;
    }
  }

  box {
    width: 440px;
    position: left;

    margin-left: .75em;

    scale-x-padding: 0.5;

    scale-x-min: 0;
    scale-x-max: 200;
    scale-y-min: 0;
    scale-y-max: 280;

    points {
      xs: 10, 60, 160, 130, 150, 30, 115;
      ys: 80, 150, 180, 50, 80, 100, 190;
      sizes: 2pt, 9pt, 3pt, 6pt, 4pt, 3pt;
      colors: #4572a7, #aa4643;
    }

    legend {
      position: top left inside;
      items: A, B;
      colors: #4572a7, #aa4643;
    }

    axis {
      position: bottom;
      layout: linear(40);
    }

    axis {
      position: right;
      width: 60px;
      layout: linear(50);
    }

    axis {
      position: top;
    }
  }
}
+737 −444

File changed.

Preview size limit exceeded, changes collapsed.