Skip to content

Add tooltip popup on hover for pie chart #44

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yooian
Copy link
Contributor

@yooian yooian commented Nov 2, 2024

Hovering over the pie chart now shows the key and value.

Since the pie is rendered as SVG, the normal tooltips as divs don't work. Lots of trouble getting something to show up - it's just text for now.

More work will probably have to be done to get a white background rectangle behind the text.

Edit: Got the background lol. Pie chart key branch is finally done

@yooian yooian marked this pull request as draft November 27, 2024 11:14
@yooian
Copy link
Contributor Author

yooian commented Nov 27, 2024

Working on cleaning up the code style, plus some broader structural/design improvements. Code is functional but slightly inefficient.

The tooltip background is not exact - will need to consider using libraries like Pango for a way to get exact text-width measurements for the svg sizing. We'll see if the potential overhead worth it or negligible.

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

Successfully merging this pull request may close these issues.

1 participant