var chart = c3.generate({ bindto: '#pkgchart', size: { height: 260 //width: 480 }, data: { columns: [ ['Trend',3,4,2,7,12,3,1,4,6,8,11,8,7,9,5,3,8,7,11,8,16,19,3,4,6,4,3,6,1], ['Bars',3,4,2,7,12,3,1,4,6,8,11,8,7,9,5,3,8,7,11,8,16,19,3,4,6,4,3,6,1] ], axes: { Bars: 'y2' }, types: { Bars: 'bar' // ADD }, colors: { Trend: 'green', Bars: 'orange' } }, axis: { y: { label: { text: 'Downloads for quid', position: 'outer-middle' } }, y2: { show: false, label: { text: 'Y2 Label', position: 'outer-middle' } }, x: { type: 'category', categories: ['08/03','08/04','08/05','08/06','08/07','08/08','08/09','08/10','08/11','08/12','08/13','08/14','08/15','08/16','08/17','08/18','08/19','08/20','08/21','08/22','08/23','08/24','08/25','08/26','08/27','08/28','08/29','08/30','08/31'], tick: { rotate: -80, multiline: false } } } });