mattijn
3/12/2019 - 2:54 PM

vega5_ci_contouren.json

{
  "$schema": "https://vega.github.io/schema/vega/v5.json",
  "autosize": "pad",
  "padding": 5,
  "width": 400,
  "height": 300,
  "signals": [
    {
      "name": "STATUS",
      "value": "open",
      "bind": {"input": "select", "options": ["open", "dicht"]}
    }
  ],
  "data": [
    {
      "name": "basis_data",
      "values": [
        {
          "Waterstand": 1,
          "Rijnafvoer": 6181.8,
          "Zeewaterstand": 1.16,
          "status": "dicht"
        },
        {
          "Waterstand": 1,
          "Rijnafvoer": 6000,
          "Zeewaterstand": 1.18,
          "status": "dicht"
        },
        {
          "Waterstand": 1,
          "Rijnafvoer": 4000,
          "Zeewaterstand": 1.41,
          "status": "dicht"
        },
        {
          "Waterstand": 1,
          "Rijnafvoer": 2000,
          "Zeewaterstand": 1.51,
          "status": "dicht"
        },
        {
          "Waterstand": 1,
          "Rijnafvoer": 600,
          "Zeewaterstand": 1.77,
          "status": "dicht"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 12447.1,
          "Zeewaterstand": 1.16,
          "status": "dicht"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 10000,
          "Zeewaterstand": 1.51,
          "status": "dicht"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 8000,
          "Zeewaterstand": 1.69,
          "status": "dicht"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 6000,
          "Zeewaterstand": 1.82,
          "status": "dicht"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 4000,
          "Zeewaterstand": 2.03,
          "status": "dicht"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 3784.3,
          "Zeewaterstand": 2.04,
          "status": "dicht"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 2000,
          "Zeewaterstand": 2.16,
          "status": "dicht"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 600,
          "Zeewaterstand": 2.43,
          "status": "dicht"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 600,
          "Zeewaterstand": 6,
          "status": "dicht"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 1963,
          "Zeewaterstand": 5.04,
          "status": "dicht"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 2000,
          "Zeewaterstand": 5.01,
          "status": "dicht"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 2859.3,
          "Zeewaterstand": 4.04,
          "status": "dicht"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 4000,
          "Zeewaterstand": 2.86,
          "status": "dicht"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 6000,
          "Zeewaterstand": 2.47,
          "status": "dicht"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 8000,
          "Zeewaterstand": 2.33,
          "status": "dicht"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 10000,
          "Zeewaterstand": 2.23,
          "status": "dicht"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 11304.3,
          "Zeewaterstand": 2.04,
          "status": "dicht"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 1.78,
          "status": "dicht"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 1.45,
          "status": "dicht"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 1.26,
          "status": "dicht"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 4683.9,
          "Zeewaterstand": 6.04,
          "status": "dicht"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 5157.3,
          "Zeewaterstand": 5.04,
          "status": "dicht"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 5799.3,
          "Zeewaterstand": 4.04,
          "status": "dicht"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 6000,
          "Zeewaterstand": 3.73,
          "status": "dicht"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 6673.3,
          "Zeewaterstand": 3.04,
          "status": "dicht"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 8000,
          "Zeewaterstand": 2.89,
          "status": "dicht"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 10000,
          "Zeewaterstand": 2.92,
          "status": "dicht"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 2.48,
          "status": "dicht"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 2.14,
          "status": "dicht"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 17050.4,
          "Zeewaterstand": 2.04,
          "status": "dicht"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 1.95,
          "status": "dicht"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 7936.7,
          "Zeewaterstand": 6.04,
          "status": "dicht"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 8000,
          "Zeewaterstand": 5.85,
          "status": "dicht"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 8196.7,
          "Zeewaterstand": 5.04,
          "status": "dicht"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 9480.1,
          "Zeewaterstand": 4.04,
          "status": "dicht"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 10000,
          "Zeewaterstand": 3.83,
          "status": "dicht"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 3.16,
          "status": "dicht"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 14326.2,
          "Zeewaterstand": 3.04,
          "status": "dicht"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 2.86,
          "status": "dicht"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 2.67,
          "status": "dicht"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 9352.8,
          "Zeewaterstand": 6.04,
          "status": "dicht"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 10000,
          "Zeewaterstand": 5.06,
          "status": "dicht"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 10021.2,
          "Zeewaterstand": 5.04,
          "status": "dicht"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 11781.7,
          "Zeewaterstand": 4.04,
          "status": "dicht"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 3.73,
          "status": "dicht"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 3.4,
          "status": "dicht"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 3.29,
          "status": "dicht"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 11045.7,
          "Zeewaterstand": 6.04,
          "status": "dicht"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 12142.9,
          "Zeewaterstand": 5.04,
          "status": "dicht"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 4.58,
          "status": "dicht"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 14828.1,
          "Zeewaterstand": 4.04,
          "status": "dicht"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 3.89,
          "status": "dicht"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 3.78,
          "status": "dicht"
        },
        {
          "Waterstand": 4.5,
          "Rijnafvoer": 13004.7,
          "Zeewaterstand": 6.04,
          "status": "dicht"
        },
        {
          "Waterstand": 4.5,
          "Rijnafvoer": 14686.8,
          "Zeewaterstand": 5.04,
          "status": "dicht"
        },
        {
          "Waterstand": 4.5,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 4.64,
          "status": "dicht"
        },
        {
          "Waterstand": 4.5,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 4.35,
          "status": "dicht"
        },
        {
          "Waterstand": 5,
          "Rijnafvoer": 15341.1,
          "Zeewaterstand": 6.04,
          "status": "dicht"
        },
        {
          "Waterstand": 5,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 5.7,
          "status": "dicht"
        },
        {
          "Waterstand": 5,
          "Rijnafvoer": 17942,
          "Zeewaterstand": 5.04,
          "status": "dicht"
        },
        {
          "Waterstand": 5,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 5.03,
          "status": "dicht"
        },
        {
          "Waterstand": 1,
          "Rijnafvoer": 6181.8,
          "Zeewaterstand": 1.16,
          "status": "open"
        },
        {
          "Waterstand": 1,
          "Rijnafvoer": 6000,
          "Zeewaterstand": 1.18,
          "status": "open"
        },
        {
          "Waterstand": 1,
          "Rijnafvoer": 4000,
          "Zeewaterstand": 1.41,
          "status": "open"
        },
        {
          "Waterstand": 1,
          "Rijnafvoer": 2000,
          "Zeewaterstand": 1.51,
          "status": "open"
        },
        {
          "Waterstand": 1,
          "Rijnafvoer": 600,
          "Zeewaterstand": 1.77,
          "status": "open"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 12447.1,
          "Zeewaterstand": 1.16,
          "status": "open"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 10000,
          "Zeewaterstand": 1.48,
          "status": "open"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 8000,
          "Zeewaterstand": 1.62,
          "status": "open"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 6000,
          "Zeewaterstand": 1.82,
          "status": "open"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 4000,
          "Zeewaterstand": 2.03,
          "status": "open"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 3784.3,
          "Zeewaterstand": 2.04,
          "status": "open"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 2000,
          "Zeewaterstand": 2.16,
          "status": "open"
        },
        {
          "Waterstand": 1.5,
          "Rijnafvoer": 600,
          "Zeewaterstand": 2.43,
          "status": "open"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 600,
          "Zeewaterstand": 3.14,
          "status": "open"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 927,
          "Zeewaterstand": 3.04,
          "status": "open"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 2000,
          "Zeewaterstand": 2.8,
          "status": "open"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 4000,
          "Zeewaterstand": 2.6,
          "status": "open"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 6000,
          "Zeewaterstand": 2.41,
          "status": "open"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 8000,
          "Zeewaterstand": 2.23,
          "status": "open"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 10000,
          "Zeewaterstand": 2.12,
          "status": "open"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 10734.7,
          "Zeewaterstand": 2.04,
          "status": "open"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 1.75,
          "status": "open"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 1.43,
          "status": "open"
        },
        {
          "Waterstand": 2,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 1.26,
          "status": "open"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 600,
          "Zeewaterstand": 4.02,
          "status": "open"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 2000,
          "Zeewaterstand": 3.54,
          "status": "open"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 4000,
          "Zeewaterstand": 3.19,
          "status": "open"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 5373.5,
          "Zeewaterstand": 3.04,
          "status": "open"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 6000,
          "Zeewaterstand": 2.98,
          "status": "open"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 8000,
          "Zeewaterstand": 2.79,
          "status": "open"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 10000,
          "Zeewaterstand": 2.66,
          "status": "open"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 2.36,
          "status": "open"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 2.08,
          "status": "open"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 16691.6,
          "Zeewaterstand": 2.04,
          "status": "open"
        },
        {
          "Waterstand": 2.5,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 1.94,
          "status": "open"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 600,
          "Zeewaterstand": 4.78,
          "status": "open"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 2000,
          "Zeewaterstand": 4.31,
          "status": "open"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 3114.5,
          "Zeewaterstand": 4.04,
          "status": "open"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 4000,
          "Zeewaterstand": 3.85,
          "status": "open"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 6000,
          "Zeewaterstand": 3.53,
          "status": "open"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 8000,
          "Zeewaterstand": 3.29,
          "status": "open"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 10000,
          "Zeewaterstand": 3.17,
          "status": "open"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 11953.8,
          "Zeewaterstand": 3.04,
          "status": "open"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 2.94,
          "status": "open"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 2.63,
          "status": "open"
        },
        {
          "Waterstand": 3,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 2.48,
          "status": "open"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 600,
          "Zeewaterstand": 5.6,
          "status": "open"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 1974.5,
          "Zeewaterstand": 5.04,
          "status": "open"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 2000,
          "Zeewaterstand": 5.03,
          "status": "open"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 4000,
          "Zeewaterstand": 4.51,
          "status": "open"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 6000,
          "Zeewaterstand": 4.07,
          "status": "open"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 6155.3,
          "Zeewaterstand": 4.04,
          "status": "open"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 8000,
          "Zeewaterstand": 3.76,
          "status": "open"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 10000,
          "Zeewaterstand": 3.6,
          "status": "open"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 3.4,
          "status": "open"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 3.15,
          "status": "open"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 17529.4,
          "Zeewaterstand": 3.04,
          "status": "open"
        },
        {
          "Waterstand": 3.5,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 3,
          "status": "open"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 1618.6,
          "Zeewaterstand": 6.04,
          "status": "open"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 2000,
          "Zeewaterstand": 5.88,
          "status": "open"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 4000,
          "Zeewaterstand": 5.21,
          "status": "open"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 4495.3,
          "Zeewaterstand": 5.04,
          "status": "open"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 6000,
          "Zeewaterstand": 4.66,
          "status": "open"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 8000,
          "Zeewaterstand": 4.26,
          "status": "open"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 9796.5,
          "Zeewaterstand": 4.04,
          "status": "open"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 10000,
          "Zeewaterstand": 4.02,
          "status": "open"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 3.84,
          "status": "open"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 3.6,
          "status": "open"
        },
        {
          "Waterstand": 4,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 3.45,
          "status": "open"
        },
        {
          "Waterstand": 4.5,
          "Rijnafvoer": 3985.4,
          "Zeewaterstand": 6.04,
          "status": "open"
        },
        {
          "Waterstand": 4.5,
          "Rijnafvoer": 4000,
          "Zeewaterstand": 6.04,
          "status": "open"
        },
        {
          "Waterstand": 4.5,
          "Rijnafvoer": 6000,
          "Zeewaterstand": 5.32,
          "status": "open"
        },
        {
          "Waterstand": 4.5,
          "Rijnafvoer": 6849.6,
          "Zeewaterstand": 5.04,
          "status": "open"
        },
        {
          "Waterstand": 4.5,
          "Rijnafvoer": 8000,
          "Zeewaterstand": 4.78,
          "status": "open"
        },
        {
          "Waterstand": 4.5,
          "Rijnafvoer": 10000,
          "Zeewaterstand": 4.49,
          "status": "open"
        },
        {
          "Waterstand": 4.5,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 4.25,
          "status": "open"
        },
        {
          "Waterstand": 4.5,
          "Rijnafvoer": 15977.4,
          "Zeewaterstand": 4.04,
          "status": "open"
        },
        {
          "Waterstand": 4.5,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 4.04,
          "status": "open"
        },
        {
          "Waterstand": 4.5,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 3.89,
          "status": "open"
        },
        {
          "Waterstand": 5,
          "Rijnafvoer": 6170.8,
          "Zeewaterstand": 6.04,
          "status": "open"
        },
        {
          "Waterstand": 5,
          "Rijnafvoer": 8000,
          "Zeewaterstand": 5.43,
          "status": "open"
        },
        {
          "Waterstand": 5,
          "Rijnafvoer": 9519.1,
          "Zeewaterstand": 5.04,
          "status": "open"
        },
        {
          "Waterstand": 5,
          "Rijnafvoer": 10000,
          "Zeewaterstand": 4.96,
          "status": "open"
        },
        {
          "Waterstand": 5,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 4.64,
          "status": "open"
        },
        {
          "Waterstand": 5,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 4.4,
          "status": "open"
        },
        {
          "Waterstand": 5,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 4.29,
          "status": "open"
        },
        {
          "Waterstand": 5.5,
          "Rijnafvoer": 8547.1,
          "Zeewaterstand": 6.04,
          "status": "open"
        },
        {
          "Waterstand": 5.5,
          "Rijnafvoer": 10000,
          "Zeewaterstand": 5.67,
          "status": "open"
        },
        {
          "Waterstand": 5.5,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 5.04,
          "status": "open"
        },
        {
          "Waterstand": 5.5,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 5.04,
          "status": "open"
        },
        {
          "Waterstand": 5.5,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 4.76,
          "status": "open"
        },
        {
          "Waterstand": 5.5,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 4.66,
          "status": "open"
        },
        {
          "Waterstand": 6,
          "Rijnafvoer": 11434.8,
          "Zeewaterstand": 6.04,
          "status": "open"
        },
        {
          "Waterstand": 6,
          "Rijnafvoer": 13000,
          "Zeewaterstand": 5.68,
          "status": "open"
        },
        {
          "Waterstand": 6,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 5.18,
          "status": "open"
        },
        {
          "Waterstand": 6,
          "Rijnafvoer": 17727.3,
          "Zeewaterstand": 5.04,
          "status": "open"
        },
        {
          "Waterstand": 6,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 5.03,
          "status": "open"
        },
        {
          "Waterstand": 6.5,
          "Rijnafvoer": 14675.8,
          "Zeewaterstand": 6.04,
          "status": "open"
        },
        {
          "Waterstand": 6.5,
          "Rijnafvoer": 16000,
          "Zeewaterstand": 5.82,
          "status": "open"
        },
        {
          "Waterstand": 6.5,
          "Rijnafvoer": 18000,
          "Zeewaterstand": 5.62,
          "status": "open"
        }
      ],
      "transform": [{"type": "filter", "expr": "datum.status == STATUS"}]
    },
    {
      "name": "point_select",
      "values": [{"Zeewaterstand": 4, "Rijnafvoer": 6181.8}]
    }
  ],
  "scales": [
    {
      "name": "x",
      "type": "linear",
      "domain": {
        "fields": [
          {"data": "basis_data", "field": "Rijnafvoer"},
          {"data": "point_select", "field": "Rijnafvoer"}
        ]
      },
      "range": "width",
      "zero": false
    },
    {
      "name": "y",
      "type": "linear",
      "domain": {
        "fields": [
          {"data": "basis_data", "field": "Zeewaterstand"},
          {"data": "point_select", "field": "Zeewaterstand"}
        ]
      },
      "range": "height",
      "zero": false
    },
    {
      "name": "color",
      "type": "ordinal",
      "domain": {"data": "basis_data", "field": "Waterstand", "sort": true},
      "range": {"scheme": "viridis"},
      "interpolate": "hcl"
    }
  ],
  "axes": [
    {
      "scale": "x",
      "orient": "bottom",
      "grid": false,
      "title": "Rijnafvoer [m3/s]",
      "labelFlush": true,
      "labelOverlap": true,
      "zindex": 1
    },
    {
      "scale": "x",
      "orient": "bottom",
      "gridScale": "y",
      "grid": true,
      "domain": false,
      "labels": false,
      "maxExtent": 0,
      "minExtent": 0,
      "ticks": false,
      "zindex": 0
    },
    {
      "scale": "y",
      "orient": "left",
      "grid": false,
      "title": "Zeewaterstand [mNAP]",
      "labelOverlap": true,
      "zindex": 1
    },
    {
      "scale": "y",
      "orient": "left",
      "gridScale": "x",
      "grid": true,
      "domain": false,
      "labels": false,
      "maxExtent": 0,
      "minExtent": 0,
      "ticks": false,
      "zindex": 0
    }
  ],
  "marks": [
    {
      "name": "countour",
      "type": "group",
      "from": {
        "facet": {
          "name": "contour_lines",
          "data": "basis_data",
          "groupby": ["Waterstand"]
        }
      },
      "encode": {
        "update": {
          "width": {"field": {"group": "width"}},
          "height": {"field": {"group": "height"}}
        }
      },
      "marks": [
        {
          "type": "line",
          "style": ["line"],
          "sort": {"field": "datum[\"Rijnafvoer\"]", "order": "descending"},
          "from": {"data": "contour_lines"},
          "encode": {
            "update": {
              "stroke": {"scale": "color", "field": "Waterstand"},
              "tooltip": {"signal": "{\"Waterstand\": ''+datum.Waterstand}"},
              "x": {"scale": "x", "field": "Rijnafvoer"},
              "y": {"scale": "y", "field": "Zeewaterstand"}
            }
          }
        }
      ]
    },
    {
      "type": "symbol",
      "style": ["point"],
      "from": {"data": "point_select"},
      "encode": {
        "update": {
          "opacity": {"value": 0.7},
          "fill": {"value": "red"},
          "tooltip": {
            "signal": "{\"Rijnafvoer\": format(datum.Rijnafvoer, \"\"), \"Zeewaterstand\": format(datum.Zeewaterstand, \"\")}"
          },
          "x": {"scale": "x", "field": "Rijnafvoer"},
          "y": {"scale": "y", "field": "Zeewaterstand"},
          "size": {"value": 50}
        }
      }
    }
  ],
  "legends": [
    {
      "title": "Waterstand [mNAP]",
      "stroke": "color",
      "gradientLength": {"signal": "clamp(height, 64, 200)"}
    }
  ]
}