Skip to content

Instantly share code, notes, and snippets.

View digi0ps's full-sized avatar
🐈
dfadfadfadsf

Sriram digi0ps

🐈
dfadfadfadsf
View GitHub Profile
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {
"url": "https://gist.githubusercontent.com/digi0ps/d53b23e2bf308e229da838827b5717c2/raw/320a194204649b1a05eac1e08ec990384f5dd19c/dupbup.csv",
"format": {
"type": "csv"
}
},
"width": 800,
"height": 400,
Station Delay Train
MS 5 16127
TBM 19 16127
CGL 29 16127
MLMR 29 16127
TMV 26 16127
VM 10 16127
VRI 27 16127
PNDM 27 16127
ALU 31 16127
@digi0ps
digi0ps / vega.json
Created March 30, 2018 05:42
Interactive graph
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {
"url": "https://gist.githubusercontent.com/digi0ps/eacf81d38aafb1a387da605319c50042/raw/47c9fe4100dc2d71ac16b2202754693791bd0036/blah.csv",
"format": {
"type": "csv",
"parse": {
"date": "date"
}
}
Date Delay
25Feb18 2
26Feb18 0
27Feb18 3
28Feb18 5
1Mar18 2
2Mar18 -2
3Mar18 0
4Mar18 7
5Mar18 -1
{
"sizes": [
22,
11,
2
],
"layers": [
{
"0": {},
"1": {},
data = [
{
"input": [
0.2823529411764706,
0.396078431372549,
0.4745098039215686,
0.12549019607843137,
0.4666666666666667,
0.40784313725490196,
0.3803921568627451,
@digi0ps
digi0ps / .block
Created February 25, 2018 11:36
Bar chart with Negative Values
license: bsd-3-clause
@digi0ps
digi0ps / .block
Last active February 25, 2018 11:36
Bar chart with Negative Values
license: bsd-3-clause
@digi0ps
digi0ps / .block
Last active February 25, 2018 09:11
Vega-Lite Bl.ocks example
license: bsd-3-clause
AKST Mean TemperatureF MeanDew PointF Mean Humidity Mean Sea Level PressureIn Mean VisibilityMiles Mean Wind SpeedMPH PrecipitationIn CloudCover Events WindDirDegrees
2014-1-1 42 38 86 29.77 8 14 0.69 8 Rain 138
2014-1-2 38 35 89 29.9 9 7 0.34 8 Rain 92
2014-1-3 36 36 97 30.32 9 3 0.02 7 Rain 102
2014-1-4 38 33 82 30.32 10 6 0 6 Rain 107
2014-1-5 42 36 77 30.02 8 17 0.37 8 Rain 113
2014-1-6 42 41 93 29.92 8 6 0.52 8 Rain 111
2014-1-7 42 39 92 29.71 7 8 0.33 8 Rain 119
2014-1-8 42 39 92 29.27 9 4 0.44 8 Rain 4
2014-1-9 39 36 87 29.38 9 7 0.39 8 Rain 269