Skip to content

Commit

Permalink
births
Browse files Browse the repository at this point in the history
  • Loading branch information
codestance committed Feb 15, 2022
1 parent 19cab65 commit 7759af1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions births.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
export default function(dataName){
c3.generate({
bindto: '#'+dataName,
data: {
x: 'year',
url: dataName+'.csv',
type: 'bar',
types: {
sum: 'line'
},
// groups: [
// ['M', 'W']
// ],
order: null,
names: {
M: 'chłopcy',
W: 'dziewczynki',
sum: 'suma'
}
},
axis: {
y: {
max: 420000,
tick: {
values: [100000, 200000, 300000, 400000],
format: d3.format("~s")
}
}
}
})
}

0 comments on commit 7759af1

Please sign in to comment.