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): nodes near coords

  • Could you post the source for the image you've posted? – Michael Sep 13 '19 at 15:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.