[Tex/LaTex] How to display the y-values of each bar in pgfplots bar chart above the bar

bar chartnodes-near-coordspgfplotstikz-pgf

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.

Best Answer

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