-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Range break semantics #4655
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
Comments
@alexcjohnson you've thought about this more than I have... can we unify the behaviour of |
Could you please provide an input+output example for this case? |
To be "honoured", should the points be included in the plot? i.e. excluded from the |
For "hour" and "values" modes I'm just describing the current behaviour I believe. |
Regarding the first case, pattern: 'day', bounds: ['Sat', 'Sun'] instead of pattern: 'day of week', bounds: [6, 0] |
Yes, for Right now in This seems to me like it will work well in the short term for the two main cases I can think of:
Then is there still a use case for doing something with Re: As an aside: Also there's a bug if you cross a break with |
Update: per Slack, let’s get rid of |
Now concerning the third item i.e. when using |
I think that's correct actually, because of |
There's a hover issue in that codepen though - the first bar after the break only gets hover on its right half. I suspect this is because the left half of this bar is actually on the other side of the break, as far as the axis itself is concerned. I guess this is an early manifestation of the problems I was describing above when we get around to drawing the break on the axis and/or on the plot. Switching to My guess is this one will be fairly tough to fix... |
They are still some hover issues with & without bars namely with reversed ranges 😕 |
Instead of milliseconds, isn't it better to have the plotly.js/src/plots/cartesian/layout_attributes.js Lines 316 to 327 in d91e017
meaning 1 day? (or even better 1 hour to simplify the math for users)? |
When we enable non-date axes, the default should be 1 for those cases; but on date axes we should keep numbers referring to milliseconds for consistency, until such time as we enable some sort of date interval units and we can explicitly specify this as "one day". |
OK. Then we may close this issue. |
Per Slack, we want to have three modes of operation, after #4653 is merged:
[]
The text was updated successfully, but these errors were encountered: