-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
display data range for histogram hover text #2086
Comments
related: #69 - this would be nice for all histograms, not just on date axes. |
I'd vote for merging this with #69 |
or maybe closing #69 and keeping this thing. |
Closing #69 and bringing the important comments here. I said:
@mewalig replied:
|
Actually might be natural for me to tackle this alongside #2071 |
It turns out to be super easy to have this report the actual data range in each bin, and there's something nice about this from a theoretical standpoint as it gives you more real information about your data, rather than just clarifying the meaning of what you can already see on the plot. If the data in the bin span a range, you see that range: If the data in the bin are all at the same value, you just see that value: On the other hand I suspect a lot of users are more interested in clarification, but also when you see Figuring out what to display as the range for a bin otherwise - ie to get A disadvantage of that scheme is that it doesn't allow you to express increments other than full digits or date parts. So if you data is on ten-minute increments, you'd get one-minute precision from the bin, and if your data has increments of 0.05, you'd see 0.01 precision from the bin. I feel like this is acceptable for a first cut though, and if people want more control we can add an attribute for it later. Thoughts @chriddyp @etpinard (and @mewalig if you're still interested)? And a separate question: thoughts on the format, |
I agree here. Although showing the data range might very useful, making this the default hover behavior is bound to confuse users. Showing the bin range feels less confusing to me.
I agree. It feels acceptable for the first cut. But we should start thinking about those future attributes now. I'm thinking of putting them in the x: [/* */],
xbins: {
hovermode: 'range', // or 'data'
hoverformat: '' // or maybe hoverprecision ...
}
I prefer |
@alexcjohnson do you want to keep to one open, or is #2115 enough now? |
closed by #2113 |
In this histogram, my data is binned by month. However, when I hover over a bar, I see the midpoint of the data. I wasn't sure whether to interpret this as the midpoint of the histogram bar or the start of the histogram bar. I would prefer if this was more explicit and said:
October 1-September 1
The text was updated successfully, but these errors were encountered: