This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var belgdata = d3.csv( | |
"https://raw.githubusercontent.com/eschnou/covid19-be/master/covid19-belgium.csv" | |
).then(function(data){ | |
//console.log(data) | |
generate(data) | |
}) | |
function generate(dataset){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d3.csv("https://raw.githubusercontent.com/allisonhorst/palmerpenguins/master/inst/extdata/penguins.csv").then(function(data){ | |
console.log(data) | |
data = data.filter(function(d){ | |
if(isNaN(d.bill_length_mm)){ | |
return false; | |
} | |
if(isNaN(d.bill_depth_mm)){ | |
return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = [ | |
[ 400, 200 ], | |
[ 210, 140 ], | |
[ 722, 300 ], | |
[ 70, 160 ], | |
[ 250, 50 ], | |
[ 110, 280 ], | |
[ 699, 225 ], | |
[ 90, 220 ] | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//the data | |
var data = [ | |
[ 400, 200 ], | |
[ 210, 140 ], | |
[ 722, 300 ], | |
[ 70, 160 ], | |
[ 250, 50 ], | |
[ 110, 280 ], | |
[ 699, 225 ], | |
[ 90, 220 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//the data | |
var data = []; | |
for(var i = 0; i < 20; i++){ | |
var randomNumber = Math.floor(Math.random()*25) | |
data.push(randomNumber) | |
//console.log(data) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = [ | |
{ language: "Luxembourgish", fluency: 10 }, | |
{ language: "English", fluency: 9 }, | |
{ language: "Spanish", fluency: 9 }, | |
{ language: "German", fluency: 8 }, | |
{ language: "French", fluency: 7 }, | |
{ language: "Portuguese", fluency: 4 }, | |
{ language: "Urdu/Hindi", fluency: 4 }, | |
{ language: "Quechua", fluency: 1 } | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = [ | |
{ language: "Luxembourgish", fluency: 10 }, | |
{ language: "English", fluency: 9 }, | |
{ language: "Spanish", fluency: 9 }, | |
{ language: "German", fluency: 8 }, | |
{ language: "French", fluency: 7 }, | |
{ language: "Portuguese", fluency: 4 }, | |
{ language: "Urdu/Hindi", fluency: 4 }, | |
{ language: "Quechua", fluency: 1 } | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = [ | |
[ 400, 200 ], | |
[ 210,140 ], | |
[ 722,300 ], | |
[ 70,160 ], | |
[ 250,50 ], | |
[ 110,280 ], | |
[ 699,225 ], | |
[ 90, 220 ] | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Instructions: | |
Using css and JS modify the form as follows. Only display the review text box if the user selects "Yes". Hide the thank you message until form has been submitted. | |
*/ | |
//$(document).ready( function() { | |
/* add your code here */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(function(){ | |
var theaccordions = document.querySelectorAll('.card-header'); | |
var clickit = function(event){ | |
window.dataLayer.push({ | |
event: "accordion", | |
eventType: event.target.innerHTML | |
}); | |
} | |
for(var i = 0; i < theaccordions.length; i++){ |
NewerOlder