Skip to content

Commit 6cc7fee

Browse files
committed
2021 update
1 parent e0152be commit 6cc7fee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Babies given names in Poland the last 20 years.
1+
Babies given names in Poland the last 21 years.

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ <h2>O danych</h2>
115115
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/js/select2.min.js"></script>
116116
<script>
117117
var chart,data;
118-
const years = []; for(let i=2000; i<=2020; i++) years.push(i)
118+
const years = []; for(let i=2000; i<=2021; i++) years.push(i)
119119
const yearsColumn = ['x']; for(let y of years) yearsColumn.push(y)
120120
function addOption(name){
121121
const opt = `<option id="${name}" value="${name}" >${name}</option>`;
@@ -134,7 +134,7 @@ <h2>O danych</h2>
134134
}
135135
function addName(name){chart.load({columns:[yearsColumn, getNameData(name)]})}
136136
function delName(name){chart.unload({ids: name})}
137-
d3.csv('https://gist.githubusercontent.com/codestance/f9a514f4dcad8ab1e981aa322deb885f/raw/7e8b4d14df60fa493081a5155edbaa5061dbf8dd/names-given-in-poland-till-2020').then(function(dat){
137+
d3.csv('https://gist.githubusercontent.com/codestance/0ae1d47de69530a8c38d50dd785a4a6c/raw/256683201d597826d39fb1cd0f0b900fd69d818a/names-given-in-poland-till-2021.csv').then(function(dat){
138138
data=dat;
139139
dat.map(d=>addOption(d.name))
140140
chart=c3.generate({

0 commit comments

Comments
 (0)