var chart = c3.generate({ bindto: '#pkgchart', size: { height: 260 //width: 480 }, data: { columns: [ ['Trend',5,3,1,3,3,1,3,9,3,2,3,3], ['Bars',5,3,1,3,3,1,3,9,3,2,3,3] ], axes: { Bars: 'y2' }, types: { Bars: 'bar' // ADD }, colors: { Trend: 'green', Bars: 'orange' } }, axis: { y: { label: { text: 'Downloads for GenomeAdapt', position: 'outer-middle' } }, y2: { show: false, label: { text: 'Y2 Label', position: 'outer-middle' } }, x: { type: 'category', categories: ['03/28','04/01','04/02','04/05','04/07','04/08','04/09','04/12','04/15','04/17','04/18','04/21'], tick: { rotate: -80, multiline: false } } } });