TransWikia.com

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

TeX - LaTeX Asked by UmerJamil on February 3, 2021

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.

One 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

Answered by mirkom on February 3, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP