Skip to content

Instantly share code, notes, and snippets.

View Zhenmao's full-sized avatar

Zhenmao Wan Zhenmao

View GitHub Profile
This file has been truncated, but you can view the full file.
{"Source":"Source de ce jeu de données : https://coronavirus.politologue.com - Les données proposées dans ce fichier sont une compilation des données proposées par le CSSE (The Johns Hopkins University) https://gisanddata.maps.arcgis.com/apps/opsdashboard/index.html#/bda7594740fd40299423467b48e9ecf6","Information":"Les données de ce fichier sont celles qui sont produites pour générer les graphiques sur https://coronavirus.politologue.com","Utilisation":"Vous pouvez utiliser ces données sans problème et une référence à https://coronavirus.politologue.com sera appréciable","GlobalData":[{"Date":"2020-04-29T00:00:00","Infection":3116185,"Deces":217212,"Guerisons":932530,"TauxDeces":6.97,"TauxGuerison":29.93,"TauxInfection":63.1},{"Date":"2020-04-28T00:00:00","Infection":3114703,"Deces":217153,"Guerisons":928658,"TauxDeces":6.97,"TauxGuerison":29.82,"TauxInfection":63.21},{"Date":"2020-04-27T00:00:00","Infection":3043016,"Deces":211167,"Guerisons":893967,"TauxDeces":6.94,"TauxGuerison":29.38,"TauxInfection":63.68
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 27 columns, instead of 25. in line 3.
Name,Class,Measure,Display Units,Line Color Hex Code,Line Color RGB Code,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018
World,Global,Nominal GDP (current USD),USD - trillion or hundred billion,#5B92E5,91 146 229,3.14E+13,3.25E+13,3.36E+13,3.34E+13,3.47E+13,3.89E+13,4.38E+13,4.75E+13,5.14E+13,5.80E+13,6.36E+13,6.03E+13,6.61E+13,7.34E+13,7.51E+13,7.72E+13,7.93E+13,7.50E+13,7.62E+13,8.10E+13,8.59E+13
India,Country,Nominal GDP (current USD),USD - trillion or hundred billion,#FF9933,253 153 51,4.21E+11,4.59E+11,4.68E+11,4.85E+11,5.15E+11,6.08E+11,7.09E+11,8.20E+11,9.40E+11,1.22E+12,1.20E+12,1.34E+12,1.68E+12,1.82E+12,1.83E+12,1.86E+12,2.04E+12,2.10E+12,2.29E+12,2.65E+12,2.72E+12
East Asia & Pacific,Region,Nominal GDP (current USD),USD - trillion or hundred billion,#2b7cff,Some Kind of Blue,6.86E+12,7.66E+12,8.28E+12,7.70E+12,7.82E+12,8.60E+12,9.65E+12,1.03E+13,1.09E+13,1.22E+13,1.41E+13,1.45E+13,1.69E+13,1.96E+13,2.10E+13,2.12E+13,2.19E+13,2.18E+13,2.25E+13
@Zhenmao
Zhenmao / index.html
Last active May 22, 2018 19:27
Triangle Chart
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Triangle Chart</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://d3js.org/d3.v5.min.js"></script>
<style>
@Zhenmao
Zhenmao / index.html
Last active May 20, 2018 14:10
US State Capitals
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>US State Capitals</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body,
text {
@Zhenmao
Zhenmao / index.html
Created March 31, 2018 23:23
Parallel coordinates
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="parallel-coordinates.css">
<body>
<div id="chart"></div>
<script src="//d3js.org/d3.v4.min.js"></script>
<script src="parallel-coordinates.js"></script>
<script>
var divID = "#chart";
var datafile = "user1.csv"; // Change to "user2.csv" or "user3.csv" to switch dataset
@Zhenmao
Zhenmao / index.html
Created March 27, 2018 04:15
Ring size chart
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Tesoro & Amistades</title>
<link href="https://fonts.googleapis.com/css?family=Arapey|Vollkorn" rel="stylesheet">
<style>
body {
font-family: 'Vollkorn', serif;
font-size: 14px;
@Zhenmao
Zhenmao / index.html
Last active March 22, 2018 07:35
US leading death causes
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href="https://fonts.googleapis.com/css?family=Inconsolata:400,700" rel="stylesheet">
<style>
#container {
font-family: 'Inconsolata', monospace;
font-size: 14px;
@Zhenmao
Zhenmao / 10jahre.json
Created March 19, 2018 13:28
Interest rates
[[["2000-01-03",5.95],["2000-01-04",6.02],["2000-01-05",6],["2000-01-06",6.07],["2000-01-07",6.02],["2000-01-10",5.96],["2000-01-11",5.91],["2000-01-12",6.04],["2000-01-13",6.06],["2000-01-14",6],["2000-01-17",6.05],["2000-01-18",6.05],["2000-01-19",6.09],["2000-01-20",6.1],["2000-01-21",6.06],["2000-01-24",6.1],["2000-01-25",5.98],["2000-01-26",5.98],["2000-01-27",5.99],["2000-01-28",6.08],["2000-01-31",6.05],["2000-02-01",5.99],["2000-02-02",5.94],["2000-02-03",5.97],["2000-02-04",5.89],["2000-02-07",6.01],["2000-02-08",5.99],["2000-02-09",5.99],["2000-02-10",6.04],["2000-02-11",6.09],["2000-02-14",6.08],["2000-02-15",6.03],["2000-02-16",6.06],["2000-02-17",6.06],["2000-02-18",6.08],["2000-02-21",6.02],["2000-02-22",5.96],["2000-02-23",5.95],["2000-02-24",5.97],["2000-02-25",5.95],["2000-02-28",6.02],["2000-02-29",5.99],["2000-03-01",5.98],["2000-03-02",5.99],["2000-03-03",5.98],["2000-03-06",5.95],["2000-03-07",5.9],["2000-03-08",5.92],["2000-03-09",5.9],["2000-03-10",5.88],["2000-03-13",5.89],["2000-03-14
@Zhenmao
Zhenmao / index.html
Created March 15, 2018 13:20
TBI-related Emergency Department Visits & Deaths
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href="https://fonts.googleapis.com/css?family=Inconsolata:400,700" rel="stylesheet">
<style>
#container {
font-family: 'Inconsolata', monospace;
font-size: 14px;
@Zhenmao
Zhenmao / demoOverTime.json
Last active March 15, 2018 02:45
Bubble chart animation over time
{
"nodes": [
{
"id": "ciq_company_258769",
"user": "Celgene Corporation",
"description": "",
"color": "#ee2c2a",
"loaded": true,
"className": "Co-Investment"
},