var chart = c3.generate({
bindto: '#pkgchart',
size: {
height: 260
//width: 480
},
data: {
columns: [
['Trend',5,2,1,4,3,2,3,3,2,4,1,3,2,1,3,3,1],
['Bars',5,2,1,4,3,2,3,3,2,4,1,3,2,1,3,3,1] ],
axes: {
Bars: 'y2'
},
types: {
Bars: 'bar' // ADD
},
colors: {
Trend: 'green',
Bars: 'orange'
}
},
axis: {
y: {
label: {
text: 'Downloads for tidyDisasters',
position: 'outer-middle'
}
},
y2: {
show: false,
label: {
text: 'Y2 Label',
position: 'outer-middle'
}
},
x: {
type: 'category',
categories: ['01/01','01/02','01/03','01/04','01/07','01/08','01/10','01/14','01/15','01/17','01/19','01/20','01/22','01/23','01/24','01/27','01/29'],
tick: {
rotate: -80,
multiline: false
}
}
}
});