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