var chart = c3.generate({ bindto: '#pkgchart', size: { height: 260 //width: 480 }, data: { columns: [ ['Trend',666,613,512,261,292,619,557,755,599,501,275,280,652,567,545,550,520,253,238,636,701,569,645,488,328,267,530,566,530,542], ['Bars',666,613,512,261,292,619,557,755,599,501,275,280,652,567,545,550,520,253,238,636,701,569,645,488,328,267,530,566,530,542] ], axes: { Bars: 'y2' }, types: { Bars: 'bar' // ADD }, colors: { Trend: 'green', Bars: 'orange' } }, axis: { y: { label: { text: 'Downloads for hypergeo', position: 'outer-middle' } }, y2: { show: false, label: { text: 'Y2 Label', position: 'outer-middle' } }, x: { type: 'category', categories: ['06/19','06/20','06/21','06/22','06/23','06/24','06/25','06/26','06/27','06/28','06/29','06/30','07/01','07/02','07/03','07/04','07/05','07/06','07/07','07/08','07/09','07/10','07/11','07/12','07/13','07/14','07/15','07/16','07/17','07/18'], tick: { rotate: -80, multiline: false } } } });