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

Layer issue on xaxis tooltip #145

Closed
jimfilippou opened this issue Oct 4, 2018 · 4 comments
Closed

Layer issue on xaxis tooltip #145

jimfilippou opened this issue Oct 4, 2018 · 4 comments

Comments

@jimfilippou
Copy link
Contributor

This happens when you have a lot of datasets, any thoughts on solving this?

image

@junedchhipa
Copy link
Contributor

I think a conditional check is required. If the tooltip height exceeds grid area, the tooltip needs to stick inside the grid area which will prevent getting x-axis tooltip in the way of the general tooltip.

@jimfilippou
Copy link
Contributor Author

jimfilippou commented Oct 4, 2018

This is the minimum Y that the tooltip can get. The Y here is 0 (lowest) however the data can't fit in there. Instead of calculating Y, the tooltip's items must divide into two lists and not one long list that can't fit in the UI. So I suggest that in the case of multiple datasets, the default behavior should group the datasets decreasing the height.

untitled

@junedchhipa
Copy link
Contributor

Good suggestion, I will give it a try

@junedchhipa
Copy link
Contributor

junedchhipa commented Oct 7, 2018

I tried making multiple columns in the tooltip - but it didn't work out great. Many things will have to be taken into consideration when changing tooltip layouts for many items.
So, for time being, I suggest using CSS for styling tooltip (removing paddings/making font size smaller, etc) to accommodate a large number of items into the chart area.

I have prevented the tooltip to go below the chart area preventing drawing it over x-axis tooltip.

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