Histogram with range and values given


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.


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

Thank you very much.