You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I can tell, this specifically happens when the histogram has more than one trace where one trace has more than one X value and the other trace has one X value.
It appears that "Results B", the dataset with a single result, renders as a line at the exact X value, rather than the bar overlay that is the full width of the bin. Adding an X value to trace2 ("Results B") results in expected behavior (uncomment line 25 in the codepen and comment line 24).
Below are photos for reference. The first shows the broken behavior when the trace has a single X value. The second shows expected behavior that is seen when a second X value is added to the trace data.
(Note: I do see this working as expected up until version 1.41.3.)
The text was updated successfully, but these errors were encountered:
The PR does fix this issue. But, like I said in PR, because May is 31 days and June is 30 then using a single point in May ends up making the bar slightly wider. Fixing that would be a much bigger code change... and could break other stuff.
Note you can use bingroup to fix this.
I think you should be using bingroup anyway, but the fix I made removes that requirement https://codepen.io/28raining/pen/OJrxjBo
Hi - we are tidying up stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for a while, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. If you'd like to submit a PR, we'd be happy to prioritize a review, and if it's a request for tech support, please post in our community forum. Thank you - @gvwilson
From what I can tell, this specifically happens when the histogram has more than one trace where one trace has more than one X value and the other trace has one X value.
Here is a codepen that demonstrates the bug: https://codepen.io/Shannon-Gallagher-the-bold/pen/XWyRVar
It appears that "Results B", the dataset with a single result, renders as a line at the exact X value, rather than the bar overlay that is the full width of the bin. Adding an X value to trace2 ("Results B") results in expected behavior (uncomment line 25 in the codepen and comment line 24).
Below are photos for reference. The first shows the broken behavior when the trace has a single X value. The second shows expected behavior that is seen when a second X value is added to the trace data.
(Note: I do see this working as expected up until version 1.41.3.)
The text was updated successfully, but these errors were encountered: