Tooltip padding for 2 rows calculated wrong #5932

HACKHERS opened this Issue Nov 4, 2016 · 3 comments


None yet

3 participants

HACKHERS commented Nov 4, 2016

Expected behaviour

When using pointFormat for tooltips, if you set they font size other than you set in style option. Space between 2 rows needs to be enough. (Not expecting overflow)

Actual behaviour

But it totally messes up. For in your own examples for activity gauge when you set the fontsize 32 you can see the problem.

Live demo with steps to reproduce

Affected browser(s)

Google Chrome


Hi @HACKHERS thanks for reporting. This seems to be something that goes wrong with calculations of em values. It looks like it works fine using px values like this, which may be a possible workaround for you.

Internal Note: Look into SvgRenderer.fontMetrics. Simplified demo

@jon-a-nygaard jon-a-nygaard added the Bug label Nov 7, 2016
HACKHERS commented Nov 7, 2016

Hi @jon-a-nygaard thanks for clarification, after opening issue I tried that too. It looks like much more space between serie name and point y. The example is over here. Is there anyway around this ?


Demo reduced to the renderer:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment