Histogram with range and values given

Hi,

I have to plot histogram where I have range and values. For e.g : in range 2-5 value is 20, in range 6-10 value is 40 etc.

How can I plot these through plotly?

Thank you for your time.

Thanks
Harprit

Here is a very sloppy hack but I hope it helps https://codepen.io/SergioC/pen/GEzJZM

Thank you very much.