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

Highstock 6 ignores tooltip.shared #7696

Closed
tregoning opened this Issue Jan 18, 2018 · 4 comments

Comments

Projects
None yet
4 participants
@tregoning

tregoning commented Jan 18, 2018

Expected behaviour

https://api.highcharts.com/highstock/tooltip.shared should behave as Highcharts.

Actual behaviour

Highstock always behaves as if tooltip.shared was set to true.

Live demo with steps to reproduce

(Highstock) broken version: http://jsfiddle.net/tregoning/qgpLmj9y/
(Highcharts) OK version: http://jsfiddle.net/tregoning/10h23xks/

Note: that previous version of Highstock (5.0.14) does work as expected
(Highstock 5.0.14 works as expected) http://jsfiddle.net/tregoning/qts93djL/

Product version

Version with the bug: Highstock (6.0.4)

Affected browser(s)

All

@sebastianbochan

This comment has been minimized.

Show comment
Hide comment
@sebastianbochan

sebastianbochan Jan 19, 2018

Contributor

Hi @tregoning
You should also disable the split option.

Demo:

Contributor

sebastianbochan commented Jan 19, 2018

Hi @tregoning
You should also disable the split option.

Demo:

@pawelfus

This comment has been minimized.

Show comment
Hide comment
@pawelfus

pawelfus Jan 19, 2018

Contributor

@tregoning

Highstock always behaves as if tooltip.shared was set to true.

Let me explain. In Highstock < v6, tooltip.shared by default was set to true, now in v6 shared option is disabled as in docs:

Defaults to false.

As @sebastianbochan said, what you see now in Highstock, it's tooltip.split which by default is enabled:

In Highstock, tooltips are split by default since v6.0.0. Stock charts typically contain multi-dimension points and multiple panes, making split tooltips the preferred layout over the previous shared tooltip.

Defaults to true.

Compare:

Contributor

pawelfus commented Jan 19, 2018

@tregoning

Highstock always behaves as if tooltip.shared was set to true.

Let me explain. In Highstock < v6, tooltip.shared by default was set to true, now in v6 shared option is disabled as in docs:

Defaults to false.

As @sebastianbochan said, what you see now in Highstock, it's tooltip.split which by default is enabled:

In Highstock, tooltips are split by default since v6.0.0. Stock charts typically contain multi-dimension points and multiple panes, making split tooltips the preferred layout over the previous shared tooltip.

Defaults to true.

Compare:

@tregoning

This comment has been minimized.

Show comment
Hide comment
@tregoning

tregoning Jan 22, 2018

Thanks for the prompt reply. This fixed my issue.

Just heads up that it might want to consider to document the relationship/interdependency between "shared" and "split" in the documentation (where tooltip.split reads simply as an alternative).

Thanks for the great product, keep up the great work!

tregoning commented Jan 22, 2018

Thanks for the prompt reply. This fixed my issue.

Just heads up that it might want to consider to document the relationship/interdependency between "shared" and "split" in the documentation (where tooltip.split reads simply as an alternative).

Thanks for the great product, keep up the great work!

@pawelfus pawelfus added the Docs label Jan 23, 2018

@pawelfus

This comment has been minimized.

Show comment
Hide comment
@pawelfus

pawelfus Jan 23, 2018

Contributor

Thanks! You are right, it should be clear in our docs.

Contributor

pawelfus commented Jan 23, 2018

Thanks! You are right, it should be clear in our docs.

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