Skip to content

Instantly share code, notes, and snippets.

View dovahcrow's full-sized avatar
👋
Hello there!

Weiyuan Wu dovahcrow

👋
Hello there!
View GitHub Profile
@dovahcrow
dovahcrow / spec.json
Created February 11, 2021 21:51
Vega-Lite spec from Thu Feb 11 2021
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"layer": [
{
"mark": "bar",
"encoding": {
"color": {
"type": "nominal",
"field": "System",
"legend": null,
@dovahcrow
dovahcrow / spec.json
Created February 10, 2021 03:53
Vega-Lite spec from Tue Feb 09 2021
{
"config": {
"view": {"continuousWidth": 400, "continuousHeight": 300},
"axis": {"labelFontSize": 16, "titleFontSize": 12}
},
"data": {"name": "data-580d9e6c809f40ee8636229c2b8c8add"},
"mark": {"type": "bar", "size": 30},
"encoding": {
"color": {
"type": "nominal",
@dovahcrow
dovahcrow / spec.json
Created September 22, 2020 08:13
Vega-Lite spec from Tue Sep 22 2020
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"data": {"name": "data-311d929e23a8671460fda2c7f27ad1a7"},
"facet": {
"type": "nominal",
"field": "dataset",
"header": {
"labelAlign": "left",
"labelAngle": 0,
"labelPadding": 0,
@dovahcrow
dovahcrow / spec.json
Created September 22, 2020 05:51
Vega-Lite spec from Mon Sep 21 2020
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"data": {"name": "data-18865776ac5a6b0261769d401e4befff"},
"facet": {"row": {"type": "nominal", "field": "Dataset", "title": null}},
"spec": {
"layer": [
{
"mark": {"type": "bar", "size": 18},
"encoding": {
"color": {"type": "nominal", "field": "Tool", "legend": null},
@dovahcrow
dovahcrow / spec.json
Created September 19, 2020 19:52
Vega-Lite spec from Sat Sep 19 2020
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"data": {"name": "data-cf6486fe048af6f3f1bff950be7b88e3"},
"facet": {
"type": "nominal",
"field": "func",
"header": {},
"title": "Completed Tasks by Function"
},
"spec": {
@dovahcrow
dovahcrow / spec.json
Created September 19, 2020 19:39
Vega-Lite spec from Sat Sep 19 2020
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"data": {"name": "data-cf6486fe048af6f3f1bff950be7b88e3"},
"facet": {
"type": "nominal",
"field": "func",
"header": {},
"title": "Completed Tasks by Function"
},
"spec": {
@dovahcrow
dovahcrow / spec.json
Created September 12, 2020 08:25
Vega-Lite spec from Sat Sep 12 2020
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"data": {"name": "data-a7d1f905f99c656ceb06b2de217a5cd2"},
"mark": "bar",
"encoding": {
"color": {"type": "nominal", "field": "name", "legend": null},
"row": {
"type": "nominal",
"field": "dataset",
"header": {"labelAlign": "left", "labelAngle": 0},
@dovahcrow
dovahcrow / spec.json
Created September 9, 2020 06:52
create report cmp
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"data": {"name": "data-358ac031a23c1eb942080dcd19000e84"},
"mark": "bar",
"encoding": {
"color": {"type": "nominal", "field": "name", "legend": null},
"row": {
"type": "nominal",
"field": "dataset",
"header": {"labelAlign": "left", "labelAngle": 0},
@dovahcrow
dovahcrow / spec.json
Created August 28, 2020 05:05
plot_correlation(df)
{"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}}, "data": {"name": "data-936f2516f58d18e216efa62e17d2ca93"}, "mark": {"type": "line", "point": true}, "encoding": {"color": {"type": "nominal", "field": "name"}, "column": {"type": "nominal", "field": "format", "title": "Data Format"}, "row": {"type": "nominal", "field": "reader", "title": "Data Reader"}, "tooltip": [{"type": "nominal", "field": "name"}, {"type": "quantitative", "field": "elapsed", "format": ".0s"}, {"type": "nominal", "field": "MachineMem"}, {"type": "nominal", "field": "DatasetMemSize"}], "x": {"type": "quantitative", "field": "DVM", "title": "Dataset Size / Memory Size"}, "y": {"type": "quantitative", "field": "elapsed", "title": "Elapsed (s)"}}, "selection": {"selector020": {"type": "interval", "bind": "scales", "encodings": ["x", "y"]}}, "title": "plot_correlation(df) Comparison", "$schema": "https://vega.github.io/schema/vega-lite/v4.8.1.json", "datasets": {"data-936f2516f58d18e216efa62e17d2ca93": [{"cpu": 8, "dataset
@dovahcrow
dovahcrow / spec.json
Created August 27, 2020 23:14
plot_correlation(df)
{"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}}, "data": {"name": "data-7b5c73cc8d7200157814bec3790eaaf6"}, "mark": {"type": "line", "point": true}, "encoding": {"color": {"type": "nominal", "field": "name"}, "column": {"type": "nominal", "field": "format", "title": "Data Format"}, "row": {"type": "nominal", "field": "reader", "title": "Data Reader"}, "tooltip": [{"type": "quantitative", "field": "elapsed", "format": ".0s"}, {"type": "nominal", "field": "MachineMem"}, {"type": "nominal", "field": "DatasetMemSize"}], "x": {"type": "quantitative", "field": "DVM", "title": "Dataset Size / Memory Size"}, "y": {"type": "quantitative", "field": "elapsed", "title": "Elapsed (s)"}}, "selection": {"selector004": {"type": "interval", "bind": "scales", "encodings": ["x", "y"]}}, "title": "plot_correlation(df) Comparison", "$schema": "https://vega.github.io/schema/vega-lite/v4.8.1.json", "datasets": {"data-7b5c73cc8d7200157814bec3790eaaf6": [{"cpu": 8, "dataset": "adult", "fname": "plot-new.py", "f