Skip to content

Instantly share code, notes, and snippets.

@Hedva
Hedva / europe.json
Created January 2, 2014 20:51
D3.js Europa
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Hedva
Hedva / eindopdracht.pde
Created October 22, 2013 13:32
Visualisatie Eindopdracht Opdracht:
int wWidth = 600;
int wHeight = 600;
int bmaxheight = 100;
String lines [];
String list [];
PFont font;
int s = millis();
int m = 1;
void setup(){
@Hedva
Hedva / bars.js
Created October 22, 2013 13:20
D3: Opdracht 6
var visitsA = [];
visitsB = [];
conversiesA = [];
conversiesB = [];
dayA = [];
$.each(dayA, function(i){
$('chart').append(i.Day);
$('chart2').append(i.Day);
});
@Hedva
Hedva / data.csv
Created October 22, 2013 13:17
D3: Opdracht 5
weeknummer waarde ConversieRatio
1 10382 8
2 12588 10
3 11238 10
4 8394 11
5 13033 12
6 12837 14
7 9242 8
8 11212 9
9 12324 18
@Hedva
Hedva / data.tsv
Last active December 26, 2015 05:29
D3: Opdracht 4
group date value
Onbekend 2002-01 19
Onbekend 2003-01 20
Onbekend 2004-01 17
Onbekend 2005-01 23
Onbekend 2006-01 20
Onbekend 2007-01 7
Onbekend 2008-01 7
Onbekend 2009-01 7
Onbekend 2010-01 3
@Hedva
Hedva / data.tsv
Last active December 26, 2015 05:28
D3: Opdracht 3
soort apparaat count
Koffie Rechts 134
Espresso Rechts 88
Cappuccino Rechts 31
Warmechoco Rechts 4
Warmwater Rechts 2
Overig Rechts 20
Koffie Links 63
Espresso Links 36
Cappuccino Links 31
@Hedva
Hedva / index.html
Last active December 26, 2015 05:29
D3: Opdracht 2
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>OMG Particles!</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.25.0"></script>
<style type="text/css">
body {
background: #222;
@Hedva
Hedva / index.html
Last active December 26, 2015 05:29
D3: Opdracht 1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Warming up</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>
@Hedva
Hedva / opdracht5.pde
Created October 22, 2013 13:04
Generatieve Visualisatie: Opdracht 5
import processing.pdf.*;
int wWidth = 1122;
int wHeight = 1587;
int rand = 32;
int aantal = 3;
int size = 1058;
float colorset = random(0, 360);
void setup(){
@Hedva
Hedva / opdracht4.pde
Last active December 26, 2015 05:19
Generatieve Visualisatie: Opdracht 4
int wWidth = 600;
int wHeight = 600;
int aantal = 5;
int circleSize = 70;
int[] numbers1 = {223, 0, 29, 76, 60, 69, 2, 41, 46, 54};
int[] numbers2 = {3, 7, 43, 45, 23, 76, 88, 227, 354, 22, 56, 220};
int c1 = floor(random(0, numbers1.length));
int c2 = floor(random(0, numbers2.length));
float color1 = numbers1[c1];
float color2 = numbers2[c2];