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 text labels to annotate the bars in bar charts #276

Open
domoritz opened this issue Jan 26, 2024 · 2 comments
Open

Add text labels to annotate the bars in bar charts #276

domoritz opened this issue Jan 26, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@domoritz
Copy link
Member

domoritz commented Jan 26, 2024

E.g. in this chart, we could show the values on each bar. For small bars, the label should be outside and for large bars the labels should be on the inside.

Screenshot 2024-01-26 at 15 32 55

This could be done as an interactor or a layered chart.

@domoritz domoritz added the enhancement New feature or request label Jan 26, 2024
@domoritz domoritz changed the title Ideas for improving the default visualizations in vgplot Add text labels to annotate the bars in bar charts Jan 26, 2024
@jheer
Copy link
Member

jheer commented Jan 26, 2024

Just to clarify: are you suggesting (1) that we update examples like this (which I support!) by adding labels or (2) that the library should automatically add text labels by default in some cases (something I'm more skeptical about). I'm assuming the former, but always good to check... :)

@domoritz
Copy link
Member Author

Definitely 1 and I wouldn't want to change the default unless there is a strong reason.

But if it's not super easy, it might be worth adding a helper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants