Skip to content

Instantly share code, notes, and snippets.

View keckelt's full-sized avatar
🐋

Klaus Eckelt keckelt

🐋
View GitHub Profile
@keckelt
keckelt / Sorted_Relative_Histogram.vl.json
Created May 19, 2021 16:53
Histogram Sort Criteria
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"data": { "values": [
{"Cylinders": 3, "Origin": "Europe"},
{"Cylinders": 3, "Origin": "Europe"},
{"Cylinders": 3, "Origin": "Europe"},
{"Cylinders": 4, "Origin": "Europe"},
{"Cylinders": 4, "Origin": "Europe"},
{"Cylinders": 5, "Origin": "Europe"},
{"Cylinders": 6, "Origin": "Europe"},
@keckelt
keckelt / density_split+interval.vg.json
Created May 11, 2021 08:57
Density Plot with Interval and Split
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"autosize": {"type": "fit", "contains": "padding"},
"background": "white",
"padding": {"left": 5, "top": 0, "right": 5, "bottom": 0},
"height": 300,
"style": "cell",
"encode": {"update": {"cursor": {"value": "text"}}},
"data": [
{"name": "selected_store"},
@keckelt
keckelt / signal_print_name.vg.json
Created May 11, 2021 08:54
Print Event Signal
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"autosize": {"type": "fit", "contains": "padding"},
"background": "white",
"padding": {"left": 5, "top": 0, "right": 5, "bottom": 0},
"height": 300,
"style": "cell",
"encode": {"update": {"cursor": {"value": "text"}}},
"data": [
{"name": "selected_store"},
@keckelt
keckelt / density_dblclick_split.vl.json
Created May 11, 2021 07:59
DensityPlot with double click split rulers
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"autosize": {
"type": "fit-x",
"contains": "padding"
},
"background": "white",
"padding": 5,
"height": 300,
"style": "cell",
@keckelt
keckelt / player_subset.csv
Created February 10, 2021 17:56
Footbal player subset
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 32 columns, instead of 25. in line 5.
player,age,current_club,current_league,foot,height,nationality,position,games12,games13,games14,games15,games16,games17,goals12,goals13,goals14,goals15,goals16,goals17,minutes12,minutes13,minutes14,minutes15,minutes16,minutes17,assists12,assists13,assists14,assists15,assists16,assists17
Dmitri Poloz,26,Zenit St. Petersburg,RUS - Premier Liga,right,183,Russia,W,22,30,24,30,40,24,3,1,4,7,14,3,1057,1258,1522,2132,2987,1194,1,4,2,6,8,7
Emiliano Rigoni,25,Zenit St. Petersburg,RUS - Premier Liga,both,180,Argentina Italy,W,,26,48,20,31,21,,1,7,5,11,6,,1255,2832,1533,2427,1433,,0,6,6,2,3
Sebastián Driussi,22,Zenit St. Petersburg,RUS - Premier Liga,both,179,Argentina Italy,CF,,7,37,15,35,31,,1,4,1,21,3,,296,2231,914,2517,1571,,0,4,1,3,4
Aleksandr Kokorin,26,Zenit St. Petersburg,RUS - Premier Liga,right,183,Russia,CF,26,23,39,24,38,34,13,10,10,8,10,19,2287,1777,2785,1424,2889,2911,5,9,7,3,7,4
Anton Zabolotnyi,26,Zenit St. Petersburg,RUS - Premier Liga,right,188,Russia,CF,5,26,,29,34,24,1,3,,5,16,4,171,1305,,1500,2562
@keckelt
keckelt / papers.vl.json
Last active November 24, 2021 09:53
Papers
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "Publications planned and in progress.",
"width": 900,
"layer": [
{
"data": {"values": [
{
"paper": "Jupyter Notebook Provenance",
"end": "2022-03-01",
@keckelt
keckelt / emojy_isotype.vl.json
Created November 30, 2020 09:55
Sentiment Emojy Isotype Plot
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"config": {"view": {"stroke": ""}},
"width": 800,
"height": 200,
"data": {
"values": [
{"country": "United States", "animal": "cattle"},
{"country": "United States", "animal": "cattle"},
{"country": "United States", "animal": "cattle"},
@keckelt
keckelt / diverging_bar_chart.vl.json
Last active November 25, 2020 13:11
Team Changes - Diverging Bar Chart
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "Bar chart with text labels. Apply scale padding to make the frame cover the labels.",
"data": {
"values": [
{"a": "Avengers", "b": -0.5},
{"a": "Masters of the Universe", "b": 0.6},
{"a": "X-Men", "b": 0.0}
]
},
@keckelt
keckelt / density_drag_split.vg.json
Created September 10, 2020 16:45
Density with dynamic split rules
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"background": "white",
"padding": 5,
"width": 400,
"height": 300,
"style": "cell",
"data": [
{
"name": "source_0",
@keckelt
keckelt / drag_voronoi.vg.json
Created September 10, 2020 15:58
Dragable marks in Voronoi Diagram
{
"$schema": "https://vega.github.io/schema/vega/v4.json",
"width": 500,
"height": 200,
"autosize": "none",
"signals": [
{
"name": "whichPoint",
"on": [
{