Skip to content

Instantly share code, notes, and snippets.

@declann
Created December 7, 2021 18:43
Show Gist options
  • Save declann/fdb1bbaf613fe72474761b0eab4930e6 to your computer and use it in GitHub Desktop.
Save declann/fdb1bbaf613fe72474761b0eab4930e6 to your computer and use it in GitHub Desktop.
projections and discontinuities (actuals)
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "https://gist.githubusercontent.com/declann/a1ee5de2ab49980f94f58ef9af20ca96/raw/52d4e16584e4abfab765e37495392eb7e3b87b18/gistfile1.txt"},
"mark": {"type": "line", "point": true},
"encoding": {
"x": {"field": "year", "type": "ordinal"},
"y": {"field": "value", "type": "quantitative", "scale": {"zero": false}},
"detail": {"field": "detail", "type": "ordinal"}
}
}
@declann
Copy link
Author

declann commented Dec 7, 2021

Solid paths are expected projections, discontinuities in the first 4 years are the updates with actuals.
The gaps is the experience difference - there are 2 components, new subs and churned subs, a waterfall breaking these down should join the discontinuities (over more space).
2021-12-07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment