Deviation Icicle

{
  "$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": "Deviation Icicle",
      "description": "[No Description Provided]",
      "author": "Kerry Kolosko",
      "uuid": "106e4600-6f23-4087-b76b-be9501cff6a9",
      "generated": "2022-08-28T04:07:34.118Z",
      "previewImageBase64PNG": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAABHCAYAAADlY75oAAAAAXNSR0IArs4c6QAADVBJREFUeF7tXX9wVMUd/+y73F2SuyQQmoxI8EfUiokiGrQGUIJSqCNTp7aJHYefMtKODk5lImgg977vQkAzVEWdjlKxMvUPSzrVWkckoyZYJKAJFdpk6i+KNQabQCAkucv9etvZcIcJvuQu5ALvwr6Zm7uZ3f3udz+fz9u3t7vffQzykgiMAgJM2CQipampyZ6fn+9rbW21bNmyJTAKdUmT5xgBDuQy4FAs1XJgAgArA76NMf+lAI4wwG+Uv09YK1eutHcfP17AOQ/wJJ6Snj5h33PPPedr2r7dll9S4hffIl/kd3Vzc3D27NlKdnu7YpTeBIT68gMWo/S2rCx9165denFeXpJRujc3lxcUFASbq6utecXFgcbGxqSUQ4eYUd684uJgXV3doL7kAaHqYfjS0NBg7V+X8GX69OkBgYHwpa6uzjJYu4UvAFhzdbVhu/OKiwUuvLm6epB2H+cFBSv62p1fUhJoaGgY0O4mACVhPqJxkHfvvW+A8zuDDsd8a09PzZkcCg6Kiop04UteSYnwSwhEAZDZvH17z1Ac8PT0m3Hy5D4A9c3btxedyYHg/rSwurqOXaMoCucBNs45btzePmHV1jrz58zpFt9tAOZ897sXQFI2kBRJ7xNSOB3Z2adU3NZmM0pPBYKHgWA2kCzSa2trndn9yrf4/by+vt5bPHt2al5RkaexsTE5patLMbKVB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3ePs1gsLJI3JSVFnzZtWmd9ff14GaUzzCgdIaglS5ZcYQmFkjhjFw0ZpePGTQpXppfr5V+J9Tdx8oroeQY7t5KfOp1lAgOqwscTVgHYRERvGd6MLiyDBd9CxY4EvVml25Hwr5EgUVZWNtFut/edBswYs4qDKvqftMtP7UZw0qmAhScZY6tVVa0dSZ2yrPkRiOvgXZwNLk7gDR+aKra11Dz40kv/qp8+/cf/mDatRFGU1S6X62PzwyI9HCkCcRVWf2dUVb1dbLYb39Fxd4rPd7J14sRlo33u5UjBkOXjh8CoCSviotilwDlPP5tD6OPXTGnpXCMw6sI61w2S9ZkDASksc/Aw5ryQwhpzlJqjQVJY5uBhzHkhhTXmKDVHg6SwzMHDmPNCCmvMUWqOBklhmYOHMeeFFNaYo9QcDZLCMgcPY84LKawxR6k5GiSFZQ4expwXUlhjjlJzNEgKyxw8jDkvhh9MMeYgkA0aDQQGCGvp0vum9Q+mGI0Kpc0LA4EBwrp/4cKr+wdTmP1dOjJKx+Tv0rkw7iHZynOJgBy8n0u0L6C6/g9h3V3ATOGdsQAAAABJRU5ErkJggg=="
    },
    "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__"}
      }
    },
    {
      "mark": {
        "type": "circle",
        "tooltip": true,
        "size": 80,
        "color": "grey"
      },
      "encoding": {
        "y": {"field": "__1__"},
        "opacity": {
          "condition": {
            "test": {
              "field": "__selected__",
              "equal": "on"
            },
            "value": 1
          },
          "value": 0
        }
      }
    },
    {
      "mark": {
        "type": "line",
        "tooltip": true,
        "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": "__2__"},
        "color": {
          "condition": [
            {
              "test": "datum['__1__'] < datum['__2__']",
              "value": "red"
            }
          ],
          "value": "green"
        },
        "opacity": {
          "condition": {
            "test": {
              "field": "__selected__",
              "equal": "off"
            },
            "value": 0
          },
          "value": 1
        }
      }
    }
  ],
  "encoding": {
    "x": {
      "field": "__0__",
      "type": "nominal",
      "axis": null
    },
    "y": {
      "type": "quantitative",
      "axis": {"title": ""}
    }
  }
}

1 comment

Leave a comment

Your email address will not be published. Required fields are marked *