Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

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

Thank you very much.