mosaic icon indicating copy to clipboard operation
mosaic copied to clipboard

Add text labels to annotate the bars in bar charts

Open domoritz opened this issue 1 year ago • 2 comments

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 avatar Jan 26 '24 20:01 domoritz

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... :)

jheer avatar Jan 26 '24 22:01 jheer

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.

domoritz avatar Jan 26 '24 22:01 domoritz