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