mattijn
3/12/2020 - 3:52 PM

vl4_gef_scans_aggregate_true.json

{
  "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
  "width": 100,
  "data": {
    "url": "https://tsws.hkvservices.nl/mangrove.ws/entry.asmx/Call?function=mangrove.gef.GetScans&parameters=%7Bz:9,aggregate:true,files:[%22CPTU%20G19.0%20%2B%2006BITE.gef%22,%22CPTU%20G19.2%20%2B%2043BITE.gef%22,%22CPTU%20G17.8%20%2B%2070BITE.gef%22,%22CPTU%20G18.4%20%2B%2070BITE.gef%22,%22CPTU%20G18.7%20%2B%20113BITE.gef%22]%7D",
    "format": {"property": "zSeries"}
  },
  "transform": [{"flatten": ["scans"]}, {"filter": "datum.scans.value >= 0"}],
  "mark": {"type": "line", "point": true, "interpolate": "cardinal"},
  "encoding": {
    "y": {
      "field": "scans.z",
      "type": "quantitative",
      "scale": {"domain": [20, 0]},
      "title": ""
    },
    "x": {"field": "scans.value", "type": "quantitative", "title": null},
    "order": {"field": "scans.z", "type": "quantitative"},
    "color": {"field": "scans.parameter", "type": "nominal", "title": null},
    "row": {
      "field": "scans.parameter",
      "title": "",
      "type": "nominal",
      "header": {"labelOrient": "top", "labelAnchor": "start"}
    },
    "column": {"field": "header.fileName", "type": "nominal", "title": ""},
    "tooltip": [
      {"field": "scans.z", "type": "quantitative", "title": "diepte (m)"},
      {"field": "scans.value", "type": "quantitative", "title": "waarde"},
      {"field": "scans.parameter", "type": "nominal", "title": "parameter"},
      {"field": "header.fileName", "type": "nominal", "title": "locatie"}
    ]
  },
  "resolve": {"scale": {"x": "independent"}},
  "config": {
    "legend": {"symbolDirection": "horizontal", "orient": "top", "columns": 4}
  }
}