var chart = c3.generate({ bindto: '#pkgchart', size: { height: 260 //width: 480 }, data: { columns: [ ['Trend',23,26,11,95,44,34,36,43,31,20,34,44,32,39,22,41,22,52,23,35,36,41,39,10,22,43,24,28,28], ['Bars',23,26,11,95,44,34,36,43,31,20,34,44,32,39,22,41,22,52,23,35,36,41,39,10,22,43,24,28,28] ], axes: { Bars: 'y2' }, types: { Bars: 'bar' // ADD }, colors: { Trend: 'green', Bars: 'orange' } }, axis: { y: { label: { text: 'Downloads for tidyHeatmap', position: 'outer-middle' } }, y2: { show: false, label: { text: 'Y2 Label', position: 'outer-middle' } }, x: { type: 'category', categories: ['07/09','07/10','07/11','07/12','07/13','07/14','07/15','07/16','07/17','07/18','07/19','07/20','07/21','07/22','07/23','07/24','07/25','07/26','07/27','07/28','07/29','07/30','07/31','08/01','08/02','08/03','08/04','08/05','08/06'], tick: { rotate: -80, multiline: false } } } });