Skip to content

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