var chart = c3.generate({ bindto: '#pkgchart', size: { height: 260 //width: 480 }, data: { columns: [ ['Trend',52,41,48,20,2,22,13,9,19,7], ['Bars',52,41,48,20,2,22,13,9,19,7] ], axes: { Bars: 'y2' }, types: { Bars: 'bar' // ADD }, colors: { Trend: 'green', Bars: 'orange' } }, axis: { y: { label: { text: 'Downloads for hypergeo2', position: 'outer-middle' } }, y2: { show: false, label: { text: 'Y2 Label', position: 'outer-middle' } }, x: { type: 'category', categories: ['09/18','09/19','09/20','09/21','09/22','09/23','09/24','09/25','09/26','09/27'], tick: { rotate: -80, multiline: false } } } });