var chart = c3.generate({ bindto: '#pkgchart', size: { height: 260 //width: 480 }, data: { columns: [ ['Trend',3,40,4,12,45,7,1,41,43,45,44,43,49,48,41,40,44,44,52,53,57,53,3,5,44,10,6,44,4,5], ['Bars',3,40,4,12,45,7,1,41,43,45,44,43,49,48,41,40,44,44,52,53,57,53,3,5,44,10,6,44,4,5] ], axes: { Bars: 'y2' }, types: { Bars: 'bar' // ADD }, colors: { Trend: 'green', Bars: 'orange' } }, axis: { y: { label: { text: 'Downloads for SIAmodules', 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','09/01'], tick: { rotate: -80, multiline: false } } } });