
What is the behavior you expect?
Setting height on the chart (380px in this case) I expect the resulting chart to be exactly that height
What is happening instead?
A style tag is created surrounding the chart and a min-height style is set to larger than the height (394px in this case).
There is some additional padding of around 14px to give some breathing space to the chart.
I will try removing it and see how it looks.
A new property chart.parentHeightOffset: 0 is added which will allow to remove the additional height appended.
Thanks that would help a lot. It's hard to design panels around charts if you can't control their size.
Do you really need this at all though? Seems like people can easily add their own wrapper element and css styles if they want (eg: for padding)
Well, I made a mistake in the beginning by not providing inner padding which would give some breathing space by default.
Now, changing that seems difficult. So, I provided this new option to remove the extra height.
馃槉 I understand, I mean you might not need the style tag at all since anybody can just wrap the chart into their own div tag and place a margin
Most helpful comment
A new property
chart.parentHeightOffset: 0is added which will allow to remove the additional height appended.