# Histogram with Plot does not show a bar for a single value array

**URL:** <https://talk.observablehq.com/t/histogram-with-plot-does-not-show-a-bar-for-a-single-value-array/5111>\
**Category:** Help\
**Created:** [May 26, 2021, 8:30am UTC](https://talk.observablehq.com/t/histogram-with-plot-does-not-show-a-bar-for-a-single-value-array/5111 "2021-05-26T08:30:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![severo](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/severo/32/786_2.png) [@severo](https://talk.observablehq.com/u/severo)\
**Post date:** [May 26, 2021, 8:30am UTC](https://talk.observablehq.com/t/histogram-with-plot-does-not-show-a-bar-for-a-single-value-array/5111/1 "2021-05-26T08:30:30Z")

</div>

Hi. I created a histogram from the example in [Bin Transform / Observable Plot / Observable / Observable](https://observablehq.com/@observablehq/plot-bin), but it does not show anything when the data contain only one value, while I was thinking it would show a single bar.

```auto
Plot.rectY([{ weight: 3 }], Plot.binX({ y: "count" }, { x: "weight" })).plot()

```

See [Plot histogram of a single value array / Sylvain Lesage / Observable](https://observablehq.com/@severo/plot-histogram-of-a-single-value-array)

https://observablehq.com/embed/@severo/plot-histogram-of-a-single-value-array?cell=*

Did I miss something?

---

<div class="post-metadata">

**Author:** ![Fil](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/fil/32/207_2.png) [@Fil](https://talk.observablehq.com/u/Fil)\
**Post date:** [May 26, 2021, 9:57pm UTC](https://talk.observablehq.com/t/histogram-with-plot-does-not-show-a-bar-for-a-single-value-array/5111/2 "2021-05-26T21:57:41Z")

</div>

Interesting avatar of [Issues · observablehq/plot · GitHub](https://github.com/observablehq/plot/issues/417;) thanks!

(you can “fix” it temporarily by adding inset:-.5)
