var chart = c3.generate({
bindto: '#pkgchart',
size: {
height: 260
//width: 480
},
data: {
columns: [
['Trend',6,2,1,1,6,1,7,6,1,1,7],
['Bars',6,2,1,1,6,1,7,6,1,1,7] ],
axes: {
Bars: 'y2'
},
types: {
Bars: 'bar' // ADD
},
colors: {
Trend: 'green',
Bars: 'orange'
}
},
axis: {
y: {
label: {
text: 'Downloads for GlobalFit',
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/08','01/10','01/15','01/22','01/26','01/27','01/29'],
tick: {
rotate: -80,
multiline: false
}
}
}
});