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

Not all tooltips on multi-layer ribbon plot are displayed #847

Closed
IKupriyanov-HORIS opened this issue Aug 15, 2023 · 0 comments
Closed

Not all tooltips on multi-layer ribbon plot are displayed #847

IKupriyanov-HORIS opened this issue Aug 15, 2023 · 0 comments
Assignees
Milestone

Comments

@IKupriyanov-HORIS
Copy link
Collaborator

IKupriyanov-HORIS commented Aug 15, 2023

Plot:

from lets_plot import *
LetsPlot.setup_html()

a = {
    'g': ['a', 'a', 'a', 'a'],
    't': [300, 370, 345, 310],
    'b': [250, 200, 270, 250],
    'x': [100, 105, 110, 115]
}

b = {
    'g': ['b', 'b', 'b', 'b'],
    't': [405, 425, 400, 300],
    'b': [100, 300, 150, 200],
    'x': [100, 105, 110, 115]
}

p = {
    'x': [100, 102, 105, 107, 110, 112, 115],
    'y': [560, 500, 550, 445, 555, 525, 535],
    'g': ['A', 'B', 'C', 'D', 'E', 'G', 'H']
}

ggplot() \
    + geom_ribbon(aes(x='x', ymin='b', ymax='t'), fill='red', alpha=0.6, data=a) \
    + geom_ribbon(aes(x='x', ymin='b', ymax='t'), fill='orange', alpha=0.6, data=b) \
    + geom_point(aes(x='x', y='y', color='g'), data=p)

Expected:
Tooltip for the point C when the cursor position is (105, 550).
Tooltip for the red ribbon when the cursor position is (105, 200).

Actual:
Image is the same for both cases:
image

@IKupriyanov-HORIS IKupriyanov-HORIS self-assigned this Aug 15, 2023
@IKupriyanov-HORIS IKupriyanov-HORIS changed the title Not all tooltips on multi-layer ribbon plots are displayed Not all tooltips on multi-layer ribbon plot are displayed Aug 15, 2023
@alshan alshan added this to the 2023Q3 milestone Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants