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

Comments

Projects
None yet
2 participants
@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

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

This comment has been minimized.

Show comment
Hide comment
@pawelfus

pawelfus Dec 13, 2016

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.

Contributor

pawelfus commented Dec 13, 2016

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.

@pawelfus pawelfus added the Bug label Dec 13, 2016

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