var chart = c3.generate({ bindto: '#pkgchart', size: { height: 260 //width: 480 }, data: { columns: [ ['Trend',19,11,16,20,11,16,17,17,14,6,6,10,11,11,5,19,17,6,10,20,19,6,16,10,14,13,19,28,21], ['Bars',19,11,16,20,11,16,17,17,14,6,6,10,11,11,5,19,17,6,10,20,19,6,16,10,14,13,19,28,21] ], axes: { Bars: 'y2' }, types: { Bars: 'bar' // ADD }, colors: { Trend: 'green', Bars: 'orange' } }, axis: { y: { label: { text: 'Downloads for bartCause', 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 } } } });