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