答案1
pgfplots
这可以通过起点来完成:
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}
\definecolor{myblue}{HTML}{1F7ED2}
\begin{axis}[
axis x line*=bottom,
axis y line*=none,
every outer y axis line/.append style={draw=none},
every y tick/.append style={draw=none},
ymin=0,
ymax=120,
xticklabel={\pgfmathtruncatemacro\tick{\tick}\tick},
ytick={0, 20, ..., 120},
ymajorgrids,
y grid style={densely dotted, line cap=round},
ylabel={Value in billion U.S. dollars},
nodes near coords,
]
\addplot[
ybar,
draw=none,
fill=myblue,
] coordinates {
(1995, 8.02)
(1996, 11.29)
(1997, 15.07)
(1998, 21.06)
(1999, 54.91)
(2000, 105)
(2001, 40.94)
};
\end{axis}
\end{tikzpicture}
\end{document}