Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip caret not drawn after updating tooltip.options.shared dynamically #6128

Closed
havgry opened this issue Dec 12, 2016 · 1 comment
Closed

Comments

@havgry
Copy link

havgry commented Dec 12, 2016

Expected behaviour

The tooltip is drawn according to the current state of shared (in this case when the tooltip isn't shared) in the same way it is with e.g. backgroundColor.

Actual behaviour

The shared property is updated and working accordingly but the caret is no longer drawn.

Live demo with steps to reproduce

http://jsfiddle.net/dm2fLhan/

  1. The tooltip is not shared and a caret is visible
  2. Click the toggle button
  3. The tooltip is now shared and no caret is displayed (as expected)
  4. Click the toggle button again
  5. The shared property is now back to its initial value (false) but the caret is gone

Affected browser(s)

All. Issue is not browser specific.

@pawelfus
Copy link
Contributor

Thanks for reporting!

Workaround:
Set chart.tooltip.len = null; before updating the tooltip. Demo: http://jsfiddle.net/3va712y2/

Internal note:
In tooltip.refresh() method tooltip.len is always set for a shared tooltip, but never for a non-shared tooltip.

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

No branches or pull requests

2 participants