Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Histogram with specified bins and counts

Is there a way to display a histogram where the bin edges and counts are already defined by upstream analytic algorithms? I hope I’m not missing something obvious, but I don’t see a way to accomplish this with a histogram trace. I’ve started trying to present this data in a bar chart, but want to make sure I’m not jumping through hoops unnecessarily.

Thanks for any help on this.

You can set:

from https://plot.ly/javascript/reference/#histogram-xbins

If that isn’t ideal for you, I’d recommend creating a bar trace with your computed data.