-
Hi there, is it currently possible to create a histogram plot, where a bar represents a range of values? For reference: https://plotly.com/python/histograms/ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
@pietz You can create histograms using the Stacked Bar component; or using Area with the You'll need to bin your data yourself though. |
Beta Was this translation helpful? Give feedback.
-
sorry to come back to this. i managed to do this with the area plot but would like to use the bar plot because i want there to be padding between the bars. how would you create a minimal example for plotting 3 values between 0 to 10 and 5 values between 11 and 20? basically i would want the ticks to be 0, 10 and 20 with 2 bars between the ticks. i can only manage to line up the ticks with the middle of the bars but not in between. |
Beta Was this translation helpful? Give feedback.
@pietz You can create histograms using the Stacked Bar component; or using Area with the
curveType
property set to'step'
:You'll need to bin your data yourself though.