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

update demo.ptx...

parent ec1ea2d6
Loading
Loading
Loading
Loading
+99 −280
Original line number Diff line number Diff line
width: 1770px;
height: 1150px;
width: 1440px;
height: 980px;

margin: 2pt;
margin-top: 1em;

border-top-width: 4px;
border-right-width: 4px;
@@ -9,186 +10,14 @@ border-bottom-width: 4px;
border-left-width: 4px;

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

box {
  position: right;
  width: 480px;

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

  box {
    position: top;
    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;

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

    box {
      background-color: #fff;
    }

    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");
    }

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

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

  box {
    position: top;
    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 {}

    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");
    }

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

    axis {
      position: right;
      width: 60px;
      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 {
  height: 250px;
  height: 260px;

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

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

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

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

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

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

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

    margin-left: .75em;
@@ -325,9 +154,20 @@ box {

box {
  position: top;
  height: 200px;
  width: 1260px;
  height: 420px;

  box {
    position: right;
    width: 200px;
  }

  box {
    position: top;
    height: 160px;
    width: 920px;
    margin-top: 1em;
    margin-left: .75em;
    margin-right: .75em;

    scale-y-min: 0;
    scale-y-max: 140;
@@ -348,19 +188,15 @@ box {
      width: 60px;
      layout: linear(20);
    }

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

  box {
    position: top;
  height: 140px;
  width: 1260px;
    height: 100px;
    width: 920px;
    margin-top: 1em;
    margin-left: .75em;
    margin-right: .75em;

    scale-y-min: 0;
    scale-y-max: 140;
@@ -376,19 +212,15 @@ box {
      width: 60px;
      layout: linear(20);
    }

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

  box {
    position: top;
  height: 200px;
  width: 1260px;
    height: 160px;
    width: 920px;
    margin-top: 1em;
    margin-left: .75em;
    margin-right: .75em;

    scale-y-min: 0;
    scale-y-max: 140;
@@ -410,27 +242,19 @@ box {
      width: 60px;
      layout: linear(20);
    }

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

}

box {
  height: 250px;
  height: 260px;

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

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

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

    margin-left: .75em;
@@ -479,7 +303,7 @@ box {
  }

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

    margin-left: .75em;
@@ -523,44 +347,39 @@ box {
  }

  box {
    width: 440px;
    width: 490px;
    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;
    }
    scale-y-max: 30;
    scale-x-padding: 0.6;

    legend {
      position: top left inside;
      items: A, B;
      colors: #4572a7, #aa4643;
    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: bottom;
      layout: linear(40);
      position: right;
      layout: linear(5);
    }

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

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

  }
}
+443 −756

File changed.

Preview size limit exceeded, changes collapsed.