Skip to content

Instantly share code, notes, and snippets.

View manzt's full-sized avatar
🥚
🐣🐥

Trevor Manz manzt

🥚
🐣🐥
View GitHub Profile
@manzt
manzt / .block
Last active February 9, 2019 09:50
Playfair's Wheat and Wages example
license: mit
[
{"Activity": "Sleeping", "Time": 8},
{"Activity": "Eating", "Time": 2},
{"Activity": "TV", "Time": 4},
{"Activity": "Work", "Time": 8},
{"Activity": "Exercise", "Time": 2},
{"Activity": null, "Time": null}
]
{
"nodes": [
{"name": "foo", "group": 1, "index": 0},
{"name": "bar", "group": 2, "index": 1},
{"name": "baz", "group": 2, "index": 2},
{"name": "foobar", "group": 3, "index": 3}
],
"links": [
{"source": 0, "target": 0},
{"source": 1, "target": 1},
[
{"name": "foo", "group": 1, "index": 0},
{"name": "bar", "group": 2, "index": 1},
{"name": "baz", "group": 2, "index": 2},
{"name": "foobar", "group": 3, "index": 3}
]
[{"name":"Myriel","group":1,"index":0},{"name":"Napoleon","group":1,"index":1},{"name":"Mlle.Baptistine","group":1,"index":2},{"name":"Mme.Magloire","group":1,"index":3},{"name":"CountessdeLo","group":1,"index":4},{"name":"Geborand","group":1,"index":5},{"name":"Champtercier","group":1,"index":6},{"name":"Cravatte","group":1,"index":7},{"name":"Count","group":1,"index":8},{"name":"OldMan","group":1,"index":9},{"name":"Labarre","group":2,"index":10},{"name":"Valjean","group":2,"index":11},{"name":"Marguerite","group":3,"index":12},{"name":"Mme.deR","group":2,"index":13},{"name":"Isabeau","group":2,"index":14},{"name":"Gervais","group":2,"index":15},{"name":"Tholomyes","group":3,"index":16},{"name":"Listolier","group":3,"index":17},{"name":"Fameuil","group":3,"index":18},{"name":"Blacheville","group":3,"index":19},{"name":"Favourite","group":3,"index":20},{"name":"Dahlia","group":3,"index":21},{"name":"Zephine","group":3,"index":22},{"name":"Fantine","group":3,"index":23},{"name":"Mme.Thenardier","group":4,"ind
This file has been truncated, but you can view the full file.
{
"config": {"view": {"width": 400, "height": 300}, "mark": {"tooltip": null}},
"hconcat": [
{
"data": {"name": "data-f54beea4226219c7ae7e43f1c7b986e9"},
"facet": {"row": {"type": "nominal", "field": "unit"}},
"spec": {
"mark": "bar",
"encoding": {
"color": {"type": "nominal", "field": "cell_id"},
This file has been truncated, but you can view the full file.
{
"config": {"view": {"width": 400, "height": 300}, "mark": {"tooltip": null}},
"vconcat": [
{
"data": {"name": "data-478d3d05f4ace303cf23f71932f6fbab"},
"facet": {"row": {"type": "nominal", "field": "unit"}},
"spec": {
"mark": "bar",
"encoding": {
"color": {"type": "nominal", "field": "cell_id"},
This file has been truncated, but you can view the full file.
{
"config": {"view": {"width": 600, "height": 500}, "mark": {"tooltip": null}},
"data": {"name": "data-907994e6a1175ebe73b51dc0b36f7fb8"},
"mark": "circle",
"encoding": {
"color": {"type": "nominal", "field": "cell_id"},
"tooltip": [
{"type": "nominal", "field": "pert_id"},
{"type": "nominal", "field": "pert_iname"},
{"type": "nominal", "field": "pert_type"},