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

Modify Tooltips #531

Open
DrapalDragon opened this issue Dec 7, 2022 · 0 comments
Open

Modify Tooltips #531

DrapalDragon opened this issue Dec 7, 2022 · 0 comments

Comments

@DrapalDragon
Copy link

I am creating an interactive World Map in Python with help of Pygal. My plan is to use the tooltip to display which country you are hovering over, and then upon clicking the country, it takes you to a seperate HTML with information on it. The problem is, sometimes the Tooltips themselves block the countries I am trying to access. For example, if I try and click on a small country like Switzerland, it's tooltip itself is so big that I can't click the country and redirect to the info page.

I have searched over and under for syntaxes that use Tooltips but can find none. I just want to be able to display which country the mouse is currently hovering over, and then redirect upon click. Possible solutions I think of include:

Adding a Hyperlink to the tooltip itself, like what is possible in the charts of pygal but for some reason not possible in the maps
Permanently setting the Tooltip's position to below the cursor
Completely disable Tooltips and just display the name of the country on the map like a normal physical world map
Below is the code that I have until now, but as a Prototype, with a model using only Continents instead of Countries. I do not yet have the HTML sites for all the countries because of this infuriating 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