var chart = c3.generate({ bindto: '#pkgchart', size: { height: 260 //width: 480 }, data: { columns: [ ['Trend',10,1,1,6,6,1,5,6,1,1,1,11,1], ['Bars',10,1,1,6,6,1,5,6,1,1,1,11,1] ], axes: { Bars: 'y2' }, types: { Bars: 'bar' // ADD }, colors: { Trend: 'green', Bars: 'orange' } }, axis: { y: { label: { text: 'Downloads for rgeolocate', position: 'outer-middle' } }, y2: { show: false, label: { text: 'Y2 Label', position: 'outer-middle' } }, x: { type: 'category', categories: ['05/19','05/20','05/21','05/23','05/24','05/25','05/27','06/01','06/03','06/04','06/05','06/06','06/09'], tick: { rotate: -80, multiline: false } } } });