How to put numbers on top of each bar in a bar chart?

I tried to make a chart like this, but I couldn’t find a way to show the numbers on top of each bar.

1 Like

Using VegaLite.jl there is an example:
https://www.queryverse.org/VegaLite.jl/stable/examples/examples_barcharts/#Bar-Chart-with-Labels-1

But you are probably using Plots.jl, which is fine, but then I don’t know :slight_smile:

Yeah, I am using plot. Forgot to mention this.

Please check this post out.

Not to brag, but since then it has been fixed so you just need to do plot(x, y; st=:bar, texts=y)

(As of Bar chart series_annotations by gustaphe · Pull Request #3329 · JuliaPlots/Plots.jl · GitHub)

4 Likes