# How to display the y-values of each bar in pgfplots bar chart above the bar?

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.

• Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Seamus Mar 1 '16 at 8:42
• What do you mean by "not working"? Not compiling? Not displaying properly? – Seamus Mar 1 '16 at 8:42

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