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

Add tooltip with values to bar chart #20

Open
briehl opened this issue Mar 19, 2020 · 3 comments
Open

Add tooltip with values to bar chart #20

briehl opened this issue Mar 19, 2020 · 3 comments
Labels
enhancement New feature or request low priority

Comments

@briehl
Copy link
Collaborator

briehl commented Mar 19, 2020

Mousing over a bar chart could show the values in that bar. Just something like:
total: x
active: y
recovered: z
deaths: a

Should have a translucent background to not cover the chart, or always be positioned away from that bar (maybe off to the side and an arrow pointing at it?)

@briehl briehl added the enhancement New feature or request label Mar 19, 2020
@jayrbolton
Copy link
Owner

+1
For a dirty mvp we can just give the divs title attributes, that would do the job

@jayrbolton jayrbolton self-assigned this Mar 20, 2020
@jayrbolton
Copy link
Owner

Added the title attributes in #21

Will keep this open for a nicer tooltip. Here's an example with tachyons: https://codepen.io/syndicatefx/pen/QVPbJg. That one is probably overkill, but the basic principle is to use .hide-child

@briehl
Copy link
Collaborator Author

briehl commented Mar 20, 2020

That's pretty nice!

@jayrbolton jayrbolton removed their assignment Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

2 participants