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

resource involvement tooltip #29

Open
vibhavermaa opened this issue Mar 24, 2021 · 0 comments
Open

resource involvement tooltip #29

vibhavermaa opened this issue Mar 24, 2021 · 0 comments

Comments

@vibhavermaa
Copy link

vibhavermaa commented Mar 24, 2021

I have created a resource-level resource involvement plot and wrapped it with ggplotly function.

plot_obj <- patients %>% resource_involvement("resource") %>% plot()
ggplotly(plot_obj)

In the plot, tooltip renders the same element multiple times. In ggplotly documentation, the tooltip default is set to "all", thereby showing all the aesthetic mappings(including the unofficial "text" aesthetic).

image

Assuming, resource activity plot maps the same element multiple times to the aesthetics attributes [ edeaR/resource_involvement.r , code snippet attached for reference], the tooltip element is rendered multiple times.

image

the ask is, Is there a way that this can be handled at the plot generation level i.e resource_involvement function, or any alternate way to solve this problem?

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

1 participant