Drop Deviation

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "usermeta": {
    "deneb": {
      "build": "1.3.0.0",
      "metaVersion": 1,
      "provider": "vegaLite",
      "providerVersion": "5.2.0"
    },
    "interactivity": {
      "tooltip": true,
      "contextMenu": true,
      "selection": true,
      "highlight": true,
      "dataPointLimit": 50
    },
    "information": {
      "name": "Drop Deviation",
      "description": "[No Description Provided]",
      "author": "Kerry Kolosko",
      "uuid": "2d2a3472-8b93-4ae3-b7e5-c854a96fd1d7",
      "generated": "2022-08-30T14:31:18.677Z",
      "previewImageBase64PNG": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJUAAABCCAYAAABemZTYAAAAAXNSR0IArs4c6QAADGNJREFUeF7tnQ1QVNcVgM99+/aHPwEJEM1a181iBGIIWk0NiawZ6/g3kxmaH6cJ5q+hNf7MtCZTnLK88xZIGE07GTQm7Yw66Yg1ZpxJbIPp1MjPaFqjDEWrUUGjkSbKKlUWdmGXfbdz111nRYRlWeU9eW+G8fg4995zz/n2vfv2nXMhoB6qB6LsAcL6Q0Tu+PHj+uTk5L6JEyf6EFGK8jhqd2PIA36oVq9ere+6ejXPR3yUl7iOrdu3N7PztbW1SezfefPmXR3D8rUjR46MczqdxGq1Xmts3DfO6eT98r59+8bxPE/q6+s7Fy5cGO92uzmr1dp56NChEHlvvNsdwzkcDufEiRNjvV6vJlS2Wq3OEydOxLS3t/MA0JUGYGgH8MsAYAAA3grQdXT8eH1HR4c2ISGhW6vV6oLylStXdDqdTutwOFxms5l3Op06vV7fe+bjj5+QeJ7vMBpPPWmxXHTGx+vcbrc7KSmJ6+3t1YfKJ0+e1BlOnszheJ7vMpubsrKyrgbG7gl8FgwmgJ5z1/9jaGpqum/8uXOTiVarS5o794BWq/XExMTEsHETExN9N6C6du1KDsdxeq4POoNQjaEP1z011V27dmkmVFVNvv/ixfTqF1/8BhEZJLc9KisrExdXV/+IUEp2P/PMd0PpI2LSC9u3T2tPS3P8Y8GC84jYF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PGYmnqq6sLypa+uro6//m2tjYfi/lQstVqpa2trTzTtzoctDU31y87HA56Ayr2FxGczo5HQnPUv/221sAGmDJlXs+Yk2trDWC6Pvfa2lqDqZ9sMll76+rq9Ox8f7m1tVXH822EnQ+VGXiZmTHko4/qPbNnz9b2l00mKwOPj41t524nHz7s8GZnZ2uYDpMBQDNrVqpfZlClpDg1obLJZGVA+s+HyufOQV9CQgJh5/vLLOYmE/Ds/EDylSsJPqfTSZlOf3nmzJmSuqa6i7eFsTLU/wFDetc81cfw1wAAAABJRU5ErkJggg=="
    },
    "dataset": [
      {
        "key": "__0__",
        "name": "Date",
        "description": "",
        "type": "dateTime",
        "kind": "column"
      },
      {
        "key": "__1__",
        "name": "metric 1",
        "description": "",
        "type": "numeric",
        "kind": "measure"
      },
      {
        "key": "__2__",
        "name": "metric 2",
        "description": "",
        "type": "numeric",
        "kind": "measure"
      }
    ]
  },
  "config": {
    "view": {"stroke": "transparent"},
    "font": "Segoe UI",
    "arc": {},
    "area": {
      "line": true,
      "opacity": 0.6
    },
    "bar": {},
    "line": {
      "strokeWidth": 3,
      "strokeCap": "round",
      "strokeJoin": "round"
    },
    "path": {},
    "point": {
      "filled": true,
      "size": 75
    },
    "rect": {},
    "shape": {},
    "symbol": {
      "strokeWidth": 1.5,
      "size": 50
    },
    "text": {
      "font": "Segoe UI",
      "fontSize": 12,
      "fill": "#605E5C"
    },
    "axis": {
      "ticks": false,
      "grid": false,
      "domain": false,
      "labelColor": "#605E5C",
      "labelFontSize": 12,
      "titleFont": "wf_standard-font, helvetica, arial, sans-serif",
      "titleColor": "#252423",
      "titleFontSize": 16,
      "titleFontWeight": "normal"
    },
    "axisQuantitative": {
      "tickCount": 3,
      "grid": true,
      "gridColor": "#C8C6C4",
      "gridDash": [1, 5],
      "labelFlush": false
    },
    "axisX": {"labelPadding": 5},
    "axisY": {"labelPadding": 10},
    "header": {
      "titleFont": "wf_standard-font, helvetica, arial, sans-serif",
      "titleFontSize": 16,
      "titleColor": "#252423",
      "labelFont": "Segoe UI",
      "labelFontSize": 13.333333333333332,
      "labelColor": "#605E5C"
    },
    "legend": {
      "titleFont": "Segoe UI",
      "titleFontWeight": "bold",
      "titleColor": "#605E5C",
      "labelFont": "Segoe UI",
      "labelFontSize": 13.333333333333332,
      "labelColor": "#605E5C",
      "symbolType": "circle",
      "symbolSize": 75
    }
  },
  "data": {"name": "dataset"},
  "layer": [
    {
      "mark": {
        "type": "line",
        "tooltip": true,
        "color": "grey",
        "interpolate": false
      },
      "encoding": {
        "y": {"field": "__1__"},
        "opacity": {
          "condition": {
            "test": {
              "field": "__selected__",
              "equal": "off"
            },
            "value": 0
          },
          "value": 1
        }
      }
    },
    {
      "mark": {
        "type": "line",
        "tooltip": true,
        "color": "grey",
        "strokeWidth": 1
      },
      "encoding": {
        "y": {
          "field": "__1__",
          "type": "quantitative"
        },
        "y2": {"field": "__2__"},
        "x": {
          "field": "__0__",
          "type": "nominal",
          "axis": null
        },
        "color": {
          "condition": [
            {
              "test": "datum['__1__'] < datum['__2__']",
              "value": "red"
            }
          ],
          "value": "green"
        },
        "opacity": {
          "condition": {
            "test": {
              "field": "__selected__",
              "equal": "off"
            },
            "value": 0
          },
          "value": 1
        }
      }
    },
    {
      "mark": {
        "type": "circle",
        "tooltip": true,
        "size": 60
      },
      "encoding": {
        "y": {"field": "__1__"},
        "color": {
          "condition": [
            {
              "test": "datum['__1__'] < datum['__2__']",
              "value": "red"
            }
          ],
          "value": "green"
        },
        "opacity": {
          "condition": {
            "test": {
              "field": "__selected__",
              "equal": "off"
            },
            "value": 0
          },
          "value": 1
        }
      }
    },
    {
      "mark": {
        "type": "tick",
        "tooltip": true,
        "size": 10
      },
      "encoding": {
        "y": {"field": "__2__"},
        "color": {
          "condition": [
            {
              "test": "datum['__1__'] < datum['__2__']",
              "value": "grey"
            }
          ],
          "value": "grey"
        },
        "opacity": {
          "condition": {
            "test": {
              "field": "__selected__",
              "equal": "off"
            },
            "value": 0
          },
          "value": 1
        }
      }
    }
  ],
  "encoding": {
    "x": {
      "field": "__0__",
      "type": "nominal",
      "axis": null
    },
    "y": {
      "type": "quantitative",
      "axis": {"title": ""}
    }
  }
}

Leave a comment

Your email address will not be published.