File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- Babies given names in Poland the last 20 years.
1
+ Babies given names in Poland the last 21 years.
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ <h2>O danych</h2>
115
115
< script src ="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/js/select2.min.js "> </ script >
116
116
< script >
117
117
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 )
119
119
const yearsColumn = [ 'x' ] ; for ( let y of years ) yearsColumn . push ( y )
120
120
function addOption ( name ) {
121
121
const opt = `<option id="${ name } " value="${ name } " >${ name } </option>` ;
@@ -134,7 +134,7 @@ <h2>O danych</h2>
134
134
}
135
135
function addName ( name ) { chart . load ( { columns :[ yearsColumn , getNameData ( name ) ] } ) }
136
136
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 ) {
138
138
data = dat ;
139
139
dat . map ( d => addOption ( d . name ) )
140
140
chart = c3 . generate ( {
You can’t perform that action at this time.
0 commit comments