Created
September 19, 2020 19:39
-
-
Save dovahcrow/89f71a7a4c75e20740999de7dedb0d4e to your computer and use it in GitHub Desktop.
Vega-Lite spec from Sat Sep 19 2020
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}}, | |
"data": {"name": "data-cf6486fe048af6f3f1bff950be7b88e3"}, | |
"facet": { | |
"type": "nominal", | |
"field": "func", | |
"header": {}, | |
"title": "Completed Tasks by Function" | |
}, | |
"spec": { | |
"layer": [ | |
{ | |
"mark": "bar", | |
"encoding": { | |
"color": { | |
"type": "nominal", | |
"field": "threshs", | |
"legend": null, | |
"sort": [ | |
"1 second", | |
"5 seconds", | |
"10 seconds", | |
"30 seconds", | |
"60 seconds" | |
], | |
"title": "Intervals" | |
}, | |
"tooltip": [ | |
{"type": "quantitative", "field": "pct", "title": "percent"}, | |
{"type": "quantitative", "field": "cnt", "title": "count"}, | |
{"type": "ordinal", "field": "threshs", "title": "interval"} | |
], | |
"x": { | |
"type": "quantitative", | |
"field": "pct", | |
"title": "Percent of tasks completed" | |
}, | |
"y": { | |
"type": "ordinal", | |
"field": "threshs", | |
"sort": [ | |
"1 second", | |
"5 seconds", | |
"10 seconds", | |
"30 seconds", | |
"60 seconds" | |
], | |
"title": "" | |
} | |
} | |
}, | |
{ | |
"mark": {"type": "text", "align": "left", "dx": -45, "dy": 1}, | |
"encoding": { | |
"text": {"type": "nominal", "field": "label"}, | |
"x": {"type": "quantitative", "field": "pct"}, | |
"y": { | |
"type": "ordinal", | |
"field": "threshs", | |
"sort": [ | |
"1 second", | |
"5 seconds", | |
"10 seconds", | |
"30 seconds", | |
"60 seconds" | |
], | |
"title": "" | |
} | |
}, | |
"transform": [{"calculate": "datum.pct + \" %\"", "as": "label"}] | |
} | |
] | |
}, | |
"columns": 2, | |
"$schema": "https://vega.github.io/schema/vega-lite/v4.8.1.json", | |
"datasets": { | |
"data-cf6486fe048af6f3f1bff950be7b88e3": [ | |
{ | |
"threshs": "1 second", | |
"pct": 50, | |
"cnt": 125, | |
"func": "plot(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "5 seconds", | |
"pct": 68.4, | |
"cnt": 171, | |
"func": "plot(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "10 seconds", | |
"pct": 74.4, | |
"cnt": 186, | |
"func": "plot(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "30 seconds", | |
"pct": 83.6, | |
"cnt": 209, | |
"func": "plot(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "60 seconds", | |
"pct": 93.2, | |
"cnt": 233, | |
"func": "plot(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "1 second", | |
"pct": 58.21, | |
"cnt": 918, | |
"func": "plot(df, x, y)", | |
"column": "1" | |
}, | |
{ | |
"threshs": "5 seconds", | |
"pct": 83.64, | |
"cnt": 1319, | |
"func": "plot(df, x, y)", | |
"column": "1" | |
}, | |
{ | |
"threshs": "10 seconds", | |
"pct": 87.51, | |
"cnt": 1380, | |
"func": "plot(df, x, y)", | |
"column": "1" | |
}, | |
{ | |
"threshs": "30 seconds", | |
"pct": 99.62, | |
"cnt": 1571, | |
"func": "plot(df, x, y)", | |
"column": "1" | |
}, | |
{ | |
"threshs": "60 seconds", | |
"pct": 99.62, | |
"cnt": 1571, | |
"func": "plot(df, x, y)", | |
"column": "1" | |
}, | |
{ | |
"threshs": "1 second", | |
"pct": 41.13, | |
"cnt": 51, | |
"func": "plot_correlation(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "5 seconds", | |
"pct": 70.97, | |
"cnt": 88, | |
"func": "plot_correlation(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "10 seconds", | |
"pct": 74.19, | |
"cnt": 92, | |
"func": "plot_correlation(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "30 seconds", | |
"pct": 87.1, | |
"cnt": 108, | |
"func": "plot_correlation(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "60 seconds", | |
"pct": 96.77, | |
"cnt": 120, | |
"func": "plot_correlation(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "1 second", | |
"pct": 19.8, | |
"cnt": 121, | |
"func": "plot_correlation(df, x, y)", | |
"column": "1" | |
}, | |
{ | |
"threshs": "5 seconds", | |
"pct": 82.16, | |
"cnt": 502, | |
"func": "plot_correlation(df, x, y)", | |
"column": "1" | |
}, | |
{ | |
"threshs": "10 seconds", | |
"pct": 82.16, | |
"cnt": 502, | |
"func": "plot_correlation(df, x, y)", | |
"column": "1" | |
}, | |
{ | |
"threshs": "30 seconds", | |
"pct": 90.51, | |
"cnt": 553, | |
"func": "plot_correlation(df, x, y)", | |
"column": "1" | |
}, | |
{ | |
"threshs": "60 seconds", | |
"pct": 98.04, | |
"cnt": 599, | |
"func": "plot_correlation(df, x, y)", | |
"column": "1" | |
}, | |
{ | |
"threshs": "1 second", | |
"pct": 18.4, | |
"cnt": 46, | |
"func": "plot_missing(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "5 seconds", | |
"pct": 68.8, | |
"cnt": 172, | |
"func": "plot_missing(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "10 seconds", | |
"pct": 69.6, | |
"cnt": 174, | |
"func": "plot_missing(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "30 seconds", | |
"pct": 78.8, | |
"cnt": 197, | |
"func": "plot_missing(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "60 seconds", | |
"pct": 90, | |
"cnt": 225, | |
"func": "plot_missing(df, x)", | |
"column": "0" | |
}, | |
{ | |
"threshs": "1 second", | |
"pct": 59.32, | |
"cnt": 1381, | |
"func": "plot_missing(df, x, y)", | |
"column": "1" | |
}, | |
{ | |
"threshs": "5 seconds", | |
"pct": 77.75, | |
"cnt": 1810, | |
"func": "plot_missing(df, x, y)", | |
"column": "1" | |
}, | |
{ | |
"threshs": "10 seconds", | |
"pct": 79.25, | |
"cnt": 1845, | |
"func": "plot_missing(df, x, y)", | |
"column": "1" | |
}, | |
{ | |
"threshs": "30 seconds", | |
"pct": 92.05, | |
"cnt": 2143, | |
"func": "plot_missing(df, x, y)", | |
"column": "1" | |
}, | |
{ | |
"threshs": "60 seconds", | |
"pct": 97.38, | |
"cnt": 2267, | |
"func": "plot_missing(df, x, y)", | |
"column": "1" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment