var chart = c3.generate({ bindto: '#pkgchart', size: { height: 260 //width: 480 }, data: { columns: [ ['Trend',1349,1250,2531,2498,2411,2358,1925,821,885,2148,2134,2050,2049,1583,932,940,1998,1915,1929,1776,1748,700,891,1912,1887,1733,1481,1264,695], ['Bars',1349,1250,2531,2498,2411,2358,1925,821,885,2148,2134,2050,2049,1583,932,940,1998,1915,1929,1776,1748,700,891,1912,1887,1733,1481,1264,695] ], axes: { Bars: 'y2' }, types: { Bars: 'bar' // ADD }, colors: { Trend: 'green', Bars: 'orange' } }, axis: { y: { label: { text: 'Downloads for QuickJSR', 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 } } } });