Skip to content

Instantly share code, notes, and snippets.

@jo6gauri
jo6gauri / index.html
Created April 25, 2018 11:43
DV_Final_Project_Streamgraph
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<!-- Example Based on http://blockbuilder.org/f94f/5554bf0a6874a64f46deacf3448ee5c8 -->
<!-- Example Based on https://bl.ocks.org/adgramigna/cd9fecfd898e3aa760fbc6f6e0fe01b7 -->
<!-- Example Based on https://bl.ocks.org/jo6gauri/7b011dea8417e5f995ed685899a84e25 -->
<head>
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
body {
@jo6gauri
jo6gauri / index.html
Last active April 17, 2018 05:49
DV_Project_Ratings_Bar_Chart
<!DOCTYPE html>
<meta charset="utf-8">
<!-- Example Based on https://bl.ocks.org/alandunning/274bf248fd0f362d64674920e85c1eb7 -->
<style>
body {
background-color: #F1F3F3
}
.axis {
font: 15px sans-serif;
@jo6gauri
jo6gauri / data.tsv
Last active April 14, 2018 06:17
Assignment 5 - Interaction in D3
date New York San Francisco Austin
20111001 63.4 62.7 72.2
20111002 58.0 59.9 67.7
20111003 53.3 59.1 69.4
20111004 55.7 58.8 68.0
20111005 64.2 58.7 72.4
20111006 58.8 57.0 77.0
20111007 57.9 56.7 82.3
20111008 61.8 56.8 78.9
20111009 69.3 56.7 68.8
@jo6gauri
jo6gauri / .block
Last active April 12, 2018 22:30
Multi-Series Line Chart
license: gpl-3.0
@jo6gauri
jo6gauri / cars.csv
Created March 30, 2018 04:51
Assignment 4 - Trellis plots using D3
Height Width Make Driveline Year
140 202 Audi All-wheel drive 2009
140 202 Audi Front-wheel drive 2009
140 202 Audi Front-wheel drive 2009
140 202 Audi All-wheel drive 2009
140 202 Audi All-wheel drive 2009
91 62 Audi All-wheel drive 2009
91 62 Audi All-wheel drive 2009
201 191 Audi All-wheel drive 2009
201 191 Audi All-wheel drive 2009
@jo6gauri
jo6gauri / cars.csv
Created March 30, 2018 04:47
Assignment 4 - Parallel Coordinates using D3
Make City mpg Height Highway mpg Horsepower Length Number of Forward Gears Torque Width Year
Audi 18 140 25 250 143 6 236 202 9
Audi 22 140 28 200 143 6 207 202 9
Audi 21 140 30 200 143 6 207 202 9
Audi 21 140 28 200 143 6 207 202 9
Audi 21 140 28 200 143 6 207 202 9
Audi 16 91 27 265 17 6 243 62 9
Audi 17 91 26 265 17 6 243 62 9
Audi 13 201 18 350 221 6 325 191 9
Audi 14 201 20 280 221 6 266 191 9
@jo6gauri
jo6gauri / cars.csv
Created March 30, 2018 04:41
Assignment 4 - Scatterplot matrix (SPLOM) using D3
City mpg Highway mpg Horsepower Torque Make Year
18 25 250 236 Audi 2009
22 28 200 207 Audi 2009
21 30 200 207 Audi 2009
21 28 200 207 Audi 2009
21 28 200 207 Audi 2009
16 27 265 243 Audi 2009
17 26 265 243 Audi 2009
13 18 350 325 Audi 2009
14 20 280 266 Audi 2009
@jo6gauri
jo6gauri / cars.csv
Created March 30, 2018 04:38
Assignment 4 - Scatterplot Trivariate using D3
We can't make this file beautiful and searchable because it's too large.
City mpg,Classification,Driveline,Engine Type,Fuel Type,Height,Highway mpg,Horsepower,Hybrid,ID,Length,Make,Model Year,Number of Forward Gears,Torque,Transmission,Width,Year
18,Automatic transmission,All-wheel drive,Audi 3.2L 6 cylinder 250hp 236ft-lbs,Gasoline,140,25,250,False,2009 Audi A3 3.2,143,Audi,2009 Audi A3,6,236,6 Speed Automatic Select Shift,202,2009
22,Automatic transmission,Front-wheel drive,Audi 2.0L 4 cylinder 200 hp 207 ft-lbs Turbo,Gasoline,140,28,200,False,2009 Audi A3 2.0 T AT,143,Audi,2009 Audi A3,6,207,6 Speed Automatic Select Shift,202,2009
21,Manual transmission,Front-wheel drive,Audi 2.0L 4 cylinder 200 hp 207 ft-lbs Turbo,Gasoline,140,30,200,False,2009 Audi A3 2.0 T,143,Audi,2009 Audi A3,6,207,6 Speed Manual,202,2009
21,Automatic transmission,All-wheel drive,Audi 2.0L 4 cylinder 200 hp 207 ft-lbs Turbo,Gasoline,140,28,200,False,2009 Audi A3 2.0 T Quattro,143,Audi,2009 Audi A3,6,207,6 Speed Automatic Select Shift,202,2009
21,Automatic transmission,All-wheel drive,Audi 2.0L 4 cylinder 2
@jo6gauri
jo6gauri / cars.csv
Created March 30, 2018 04:36
Assignment 4 - Scatterplot Bivariate using D3
We can't make this file beautiful and searchable because it's too large.
City mpg,Classification,Driveline,Engine Type,Fuel Type,Height,Highway mpg,Horsepower,Hybrid,ID,Length,Make,Model Year,Number of Forward Gears,Torque,Transmission,Width,Year
18,Automatic transmission,All-wheel drive,Audi 3.2L 6 cylinder 250hp 236ft-lbs,Gasoline,140,25,250,False,2009 Audi A3 3.2,143,Audi,2009 Audi A3,6,236,6 Speed Automatic Select Shift,202,2009
22,Automatic transmission,Front-wheel drive,Audi 2.0L 4 cylinder 200 hp 207 ft-lbs Turbo,Gasoline,140,28,200,False,2009 Audi A3 2.0 T AT,143,Audi,2009 Audi A3,6,207,6 Speed Automatic Select Shift,202,2009
21,Manual transmission,Front-wheel drive,Audi 2.0L 4 cylinder 200 hp 207 ft-lbs Turbo,Gasoline,140,30,200,False,2009 Audi A3 2.0 T,143,Audi,2009 Audi A3,6,207,6 Speed Manual,202,2009
21,Automatic transmission,All-wheel drive,Audi 2.0L 4 cylinder 200 hp 207 ft-lbs Turbo,Gasoline,140,28,200,False,2009 Audi A3 2.0 T Quattro,143,Audi,2009 Audi A3,6,207,6 Speed Automatic Select Shift,202,2009
21,Automatic transmission,All-wheel drive,Audi 2.0L 4 cylinder 2
@jo6gauri
jo6gauri / cars.csv
Created March 30, 2018 04:27
Assignment 4 - Line Chart using D3
We can't make this file beautiful and searchable because it's too large.
City mpg,Classification,Driveline,Engine Type,Fuel Type,Height,Highway mpg,Horsepower,Hybrid,ID,Length,Make,Model Year,Number of Forward Gears,Torque,Transmission,Width,Year
18,Automatic transmission,All-wheel drive,Audi 3.2L 6 cylinder 250hp 236ft-lbs,Gasoline,140,25,250,False,2009 Audi A3 3.2,143,Audi,2009 Audi A3,6,236,6 Speed Automatic Select Shift,202,2009
22,Automatic transmission,Front-wheel drive,Audi 2.0L 4 cylinder 200 hp 207 ft-lbs Turbo,Gasoline,140,28,200,False,2009 Audi A3 2.0 T AT,143,Audi,2009 Audi A3,6,207,6 Speed Automatic Select Shift,202,2009
21,Manual transmission,Front-wheel drive,Audi 2.0L 4 cylinder 200 hp 207 ft-lbs Turbo,Gasoline,140,30,200,False,2009 Audi A3 2.0 T,143,Audi,2009 Audi A3,6,207,6 Speed Manual,202,2009
21,Automatic transmission,All-wheel drive,Audi 2.0L 4 cylinder 200 hp 207 ft-lbs Turbo,Gasoline,140,28,200,False,2009 Audi A3 2.0 T Quattro,143,Audi,2009 Audi A3,6,207,6 Speed Automatic Select Shift,202,2009
21,Automatic transmission,All-wheel drive,Audi 2.0L 4 cylinder 2