\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\pgfplotsset{compat=1.18}

\begin{document}

\begin{tikzpicture}
\pgfplotstableread{
  x    y
  0.0  3
  0.1  1
  0.3  2
  0.4  4
  0.65 3
  0.7  2
  1    4
}\mydata

\begin{axis}[
  ybar interval,
  xtick=data,
  xticklabel interval boundaries,
  xticklabel style={rotate=90, anchor=east},
]
\addplot[gray, fill=gray, opacity=0.5] table {\mydata};
\end{axis}
\end{tikzpicture}

\end{document}