var chart = c3.generate({ bindto: '#pkgchart', size: { height: 260 //width: 480 }, data: { columns: [ ['Trend',3,1,40,4,4,41,3,1,40,9,4,43,1,2,52,5,3,43,1,7,42,2,4,47,4,5,45,5,4], ['Bars',3,1,40,4,4,41,3,1,40,9,4,43,1,2,52,5,3,43,1,7,42,2,4,47,4,5,45,5,4] ], axes: { Bars: 'y2' }, types: { Bars: 'bar' // ADD }, colors: { Trend: 'green', Bars: 'orange' } }, axis: { y: { label: { text: 'Downloads for TreeRingShape', position: 'outer-middle' } }, y2: { show: false, label: { text: 'Y2 Label', position: 'outer-middle' } }, x: { type: 'category', categories: ['06/08','06/09','06/10','06/11','06/12','06/13','06/14','06/15','06/16','06/17','06/18','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'], tick: { rotate: -80, multiline: false } } } });