2

I am using code from this thread. link: Making one bar in a bar-graph stand out pgfplots

Everything is working fine but I want to display the y-values of each bar in pgfplots bar chart above the bar.

I tried 'nodes near coords' method but it is not working for the graph.

Please let me know how to put corresponding y-values above the bars.

Thank you.

Stefan Pinnow
  • 29,535

1 Answers1

2

It works for me by simply adding the options nodes near coords and enlargelimits (the latter is just to make the axes bigger to account for the labels): nodes near coords

mirkom
  • 1,664