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

havgry opened this issue Dec 12, 2016 · 1 comment


Copy link

@havgry 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

  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.

Copy link

@pawelfus pawelfus commented Dec 13, 2016

Thanks for reporting!

Set chart.tooltip.len = null; before updating the tooltip. Demo:

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
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants