I would like to plot this datafile
"/root/temp.txt"
LB|30|421
CN|50|247
BR|20|370
SA|12|310
Where the first column is the X Axis, the second one is the Y Axis and the third one the label to put above each column of the histogram.
Before now, I use this syntax to plot the graph (but without any label)
set terminal png ;
set title "Hello" ;
set xlabel "Country" ;
set ylabel "values" ;
set style fill solid ;
set xtic rotate -45 ;
set datafile separator "|" ;
set style data histograms ;
plot '/root/temp.txt' using 2:xtic(1) notitle
But if I try to add labels gnu plot give me error!!
The syntax I use to add labels is plot '/root/temp.txt' using 2:xtic(1):3 with labels notitle
Could you please help me? Thank you