setting padding.top causes miscalculated graph height
Graph height is miscalculated if padding.top is set:
c3.generate({
padding: {
top: 100,
right: 0,
bottom: 100,
left: 40
},
size: {
height: 400
},
data: {...}
})
With padding.top defined (renders container at correct height but graph is squashed):

Without padding.top:

Hi, Thank you for opening this issue.
This is a little confusing, but it's not a bug. I mean the height is the height of the svg, not of the chart area on it. And padding is the padding for svg, so this seems working as I intends.
e.g. If height is 400 and padding.top and padding.bottom are 100, then the height of the chart area will be 200 (= 400 - 100 - 100).
If yo want to leave a space on top/bottom, it would be better to set as style on the div where the chart inserted. (or add the sum of padding.top/bottom to the height. In this case, if height = 600, padding.top/bottom = 100, then height = 400)
I'll close this issue. Please open a new topic in google group if needed. https://groups.google.com/forum/#!forum/c3js