Skip to content

Instantly share code, notes, and snippets.

View domoritz's full-sized avatar
📊
charting new territory

Dominik Moritz domoritz

📊
charting new territory
View GitHub Profile
@domoritz
domoritz / .block
Last active June 4, 2017 21:06
Demo of config override bug
license: bsd-3-clause
@domoritz
domoritz / .block
Last active June 28, 2017 01:02
Grouped Bar Chart
license: bsd-3-clause
@domoritz
domoritz / delays.csv
Last active July 25, 2017 21:13
Sample of On Time Data for January 2017 (10k rows)
We can't make this file beautiful and searchable because it's too large.
Row,Carrier,FlightNum,Origin,OriginState,Dest,DestState,DepTime,DepDelay,ArrTime,ArrDelay,Cancelled,AirTime,Distance
1,AA,853,ORD,IL,PHX,AZ,1518,-6,1732,-41,0,174,1440
2,AA,853,ORD,IL,PHX,AZ,1531,7,1830,13,0,219,1440
3,AA,853,MIA,FL,CLT,NC,1013,17,1239,26,0,115,650
4,AA,853,MIA,FL,CLT,NC,953,-3,1209,-4,0,104,650
5,AA,853,MIA,FL,CLT,NC,1001,1,1221,7,0,101,650
6,AA,851,PHL,PA,DEN,CO,1815,0,2033,-7,0,234,1558
7,AA,851,AUS,TX,CLT,NC,655,-5,1022,-17,0,122,1032
8,AA,851,AUS,TX,CLT,NC,700,0,1041,2,0,134,1032
9,AA,850,SJU,PR,PHL,PA,841,-4,1145,-25,0,218,1576
@domoritz
domoritz / spec.json
Last active July 25, 2017 18:23
Airline Delays: Scatterplot
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {"url": "https://gist.githubusercontent.com/domoritz/1ca6a741fbfb0a64396e40f233ae6f21/raw/1b1e1e3cb5d112760fbc0fe620e1eeb6558bbdf3/delays.csv"},
"width": 800,
"height": 400,
"mark": "point",
"encoding": {
"x": {"field": "DepDelay", "type": "quantitative"},
"y": {"field": "ArrDelay", "type": "quantitative"}
}
@domoritz
domoritz / spec.json
Created July 25, 2017 18:23
Airline Delays: Heatmap
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {
"url": "https://gist.githubusercontent.com/domoritz/1ca6a741fbfb0a64396e40f233ae6f21/raw/1b1e1e3cb5d112760fbc0fe620e1eeb6558bbdf3/delays.csv"
},
"width": 800,
"height": 400,
"mark": "rect",
"encoding": {
"x": {
@domoritz
domoritz / sp10.csv
Created July 31, 2017 18:19
Stock datasets
We can't make this file beautiful and searchable because it's too large.
Symbol,Sector,Date,Open,High,Low,Close,Volume
ba,Industrials,20000103,34.955,35.007,33.412,33.73,3094425
ba,Industrials,20000104,33.463,34.53,33.353,33.675,4213282
ba,Industrials,20000105,35.278,36.396,34.741,35.808,8951450
ba,Industrials,20000106,35.483,36.499,34.53,36.183,5773395
ba,Industrials,20000107,36.823,37.675,36.71,37.189,7047317
ba,Industrials,20000110,37.189,37.349,36.558,36.71,2819138
ba,Industrials,20000111,36.448,36.872,35.91,36.021,2873679
ba,Industrials,20000112,35.91,37.088,35.707,36.183,2730346
ba,Industrials,20000113,36.396,36.448,35.278,35.593,3559963
We can't make this file beautiful and searchable because it's too large.
date,serial_number,model,capacity_bytes,failure,smart_1_normalized,smart_1_raw,smart_2_normalized,smart_2_raw,smart_3_normalized,smart_3_raw,smart_4_normalized,smart_4_raw,smart_5_normalized,smart_5_raw,smart_7_normalized,smart_7_raw,smart_8_normalized,smart_8_raw,smart_9_normalized,smart_9_raw,smart_10_normalized,smart_10_raw,smart_11_normalized,smart_11_raw,smart_12_normalized,smart_12_raw,smart_13_normalized,smart_13_raw,smart_15_normalized,smart_15_raw,smart_22_normalized,smart_22_raw,smart_183_normalized,smart_183_raw,smart_184_normalized,smart_184_raw,smart_187_normalized,smart_187_raw,smart_188_normalized,smart_188_raw,smart_189_normalized,smart_189_raw,smart_190_normalized,smart_190_raw,smart_191_normalized,smart_191_raw,smart_192_normalized,smart_192_raw,smart_193_normalized,smart_193_raw,smart_194_normalized,smart_194_raw,smart_195_normalized,smart_195_raw,smart_196_normalized,smart_196_raw,smart_197_normalized,smart_197_raw,smart_198_normalized,smart_198_raw,smart_199_normalized,smart_199_raw,smart
@domoritz
domoritz / .block
Last active December 7, 2017 13:08
Vega-Lite Line Charts
license: bsd-3-clause
@domoritz
domoritz / .block
Last active October 24, 2017 17:14
Vega loader problem
license: bsd-3-clause
@domoritz
domoritz / bar.svg
Last active October 27, 2017 02:33
Twitter card test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.