I have the following barplot in Julia Plots:
using DataFrames
using Plots
df = DataFrame(group = ["A", "B"],
value = [10, 9])
bar(df[!, "group"], df[!, "value"], legend = :none)
Output:
I would like to show the values of each bar on top of each bar. So in this example, it should show the values 10 for bar A and 9 for bar B. Is there an automatic way for this or should you annotate the values in Julia
Plots
?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.