function drawC3Graph(x, y, y2, width = 480, height = 240) {
return c3({
size: {width: width, height: height},
data: {x: 'x',
columns: [x, y, y2],
axes: {'complex cases': 'y2'},
groups: [[y[0]]],
types: {'new cases': 'bar'}
},
axis: {
x: {type: 'category', tick: {rotate: -45, multiline: false}, height: 40},
y: {label: {text: y[0], position: 'outer-middle'}},
y2: {show: true, min: 0, padding: {top: 0, bottom: 0},
label: {text: y2[0], position: 'outer-middle'}
}
},
});
}