This option is available in the latest version of Excel but I cannot find anything like it in LibreOffice
As in histogram? If you haven’t already, first you must calculate the frequencies of your variable. Use Calc function FREQUENCY. See example for starters. Then you can simply plot the frequencies versus labels (for intervals) as a column graph.
…providing that all intervals are equals, and
Spacing between bars set to 0 (
Format Data Series… -
Options tab -