-
-
Couldn't load subscription status.
- Fork 1.9k
Introducing histogram* bingroup attributes #3845
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
Conversation
- design to work for histogram AND histogram2d* traces! - design to work with bingroup! - fills in fullLayout._histogramBinOpts for all histogram* traces - replace `binDir` field in histogramBinOpts[i] by `dirs` (an array) to handle cases where x and y bins are in same bingroup
|
Thanks for the very nice PR @etpinard ! The tests are very nice 👍 I think I have uncovered a bug (not related to your PR) when reviewing. A few mocks in your test suite do not render! I will leave it up to you to decide whether to fix this here or in another PR. Let me know what you decide to do. |
... in histogram tests as a workaround for
#3881
- this fixes some shared histogram2d (via bingroup) edge cases - this fixes a performance regression from #3845
resolves #3749 (the 1d overlay case) and resolves #3515 (the 2d case).
Users can now group traces such that their autobin settings are compatible (see #3515 (comment) for more info on what compatible means).
Examples:
In brief, this PR:
bingrouptohistogram,histogram2dandhistogram2dcontourtraceshistogram2dandhistogram2dcontourtraces also get new attributesxbingroupandybingroupto allow users to group x-bins and y-bins separately.To do so, I decided to:
crossTraceDefaultsmethodcalcAllAutoBinsroutine@plotly/plotly_js best to review this PR commit-by-commit. Starting by reviewing the jasmine tests added in 359fbbc might make things easier to grasp.