Skip to content

Instantly share code, notes, and snippets.

View CafeConVega's full-sized avatar

Joshua Vega CafeConVega

  • Miami
View GitHub Profile
@CafeConVega
CafeConVega / custom.css
Created February 22, 2016 15:55
Week 6: Line Plot
h1,
h2 {
font-family: 'Graduate', cursive;
text-align: center;
text-transform: uppercase;
}
p {
font-family: 'Roboto', sans-serif;
text-align: center;
@CafeConVega
CafeConVega / custom.css
Created February 15, 2016 03:37
Week 5 - Bar Chart with Labels
h1,
h2 {
font-family: 'Graduate', cursive;
text-align: center;
text-transform: uppercase;
}
p {
font-family: 'Roboto', sans-serif;
text-align: center;
@CafeConVega
CafeConVega / betterlifeindex.csv
Last active February 10, 2016 02:29
Week 5 - Scatterplot Fix
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 25 columns, instead of 1. in line 6.
country,dwellingsWithoutBasicFacilities,housingExpenditure,roomsPerPerson,householdNetAdjustedDisposableIncome,householdNetFinancialWealth,employmentRate,jobSecurity,longTermUnemploymentRate,personalEarnings,qualityOfSupportNetwork,educationalAttainment,studentSkills,yearsInEducation,airPollution,waterQuality,consultationOnRuleMaking,voterTurnout,lifeExpectancy,selfReportedHealth,lifeSatisfaction,assaultRate,homicideRate,employeesWorkingVeryLongHours,timeDevotedToLeisureAndPersonalCare
Australia,1.1,20,2.3,31197,38482,72,4.4,1.06,46585,93,74,512,18.8,13,93,10.5,93,82,85,7.4,2.1,0.8,14.23,14.41
Austria,1,21,1.6,29256,48125,73,3.4,1.07,43837,95,82,500,16.9,27,95,7.1,75,81.1,69,7.5,3.4,0.5,8.61,14.46
Belgium,1.9,20,2.3,27811,78368,62,4.5,3.37,47276,91,71,509,18.8,21,84,4.5,89,80.5,74,7.1,6.6,1.2,4.41,15.71
Brazil,6.7,21,1.4,10310,6875,67,4.8,2.17,7909,90,43,402,16.3,18,67,4,79,73.4,69,7.2,7.9,25.5,10.74,14.97
Canada,0.2,22,2.5,30212,63261,72,6.6,0.9,44017,94,89,522,17,15,90,10.5,61,81,88,7.6,1.3,1.7,3.98,14.25
C
@CafeConVega
CafeConVega / custom.css
Created February 7, 2016 18:37
Week4: Starter Bars
h1,
h2 {
font-family: 'Graduate', cursive;
text-align: center;
text-transform: uppercase;
}
p {
font-family: 'Roboto', sans-serif;
text-align: center;
@CafeConVega
CafeConVega / index.html
Created February 7, 2016 18:36
Week 4: SVG Fixes
<html lang="en">
<head>
<meta charset="utf-8">
<title>SVG Shapes</title>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
</head>
@CafeConVega
CafeConVega / custom.css
Created February 7, 2016 18:34
Week4: Sortable Heatmap Table
h1,
h2 {
font-family: 'Graduate', cursive;
text-align: center;
text-transform: uppercase;
}
p {
font-family: 'Roboto', sans-serif;
text-align: center;
@CafeConVega
CafeConVega / custom.css
Last active February 1, 2016 02:06
Week 3: D3 Table
h1,
h2 {
font-family: 'Graduate', cursive;
text-align: center;
text-transform: uppercase;
}
p {
font-family: 'Roboto', sans-serif;
text-align: center;
@CafeConVega
CafeConVega / chartist-plugin-tooltip.css
Created January 25, 2016 19:44
Week2 - Two Charts w/ Tooltip
.chartist-tooltip {
position: absolute;
display: inline-block;
opacity: 0;
min-width: 5em;
padding: .5em;
background: #F4C63D;
color: #453D3F;
font-family: Oxygen,Helvetica,Arial,sans-serif;
font-weight: 700;
@CafeConVega
CafeConVega / custom.css
Last active January 25, 2016 04:10
Week2 - Two Charts
h1,
h2 {
font-family: 'Graduate', cursive;
text-align: center;
text-transform: uppercase;
}
p {
font-family: 'Roboto', sans-serif;
text-align: center;
@CafeConVega
CafeConVega / create_p_from_data.js
Created January 20, 2016 00:18
Week2-create_p_from_data
d3.select("body").append("h1").text("My Data");
var body = d3.select("body");
// Open the console to see this. You may need to reload if you
// didn't have it open when you first loaded the page.
console.log("D3 Selection of body:", body);
// The selection via jquery returns something different:
console.log("Jquery selection:", $("body"));