Skip to content
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

Improve chart grids #453

Merged
merged 3 commits into from
May 27, 2024
Merged

Improve chart grids #453

merged 3 commits into from
May 27, 2024

Conversation

kMutagene
Copy link
Collaborator

@kMutagene kMutagene commented May 21, 2024

This PR will improve Chart.Grid (and by extension, Chart.SingleStack) to:

  • respect all present subplot anchors and ids of the input charts. This means that e.g. a chart with 2 Y axes will keep both in the resulting grid, with both axes set to the correct grid ___location.
    Not possible due to plotly.js limitations. Instead, we take the first each and remove everything else. If multiple axes per cells are needed users have to refer to creating their own ___domain-based grids
  • Set individual subplot titles per input chart

therefore, this PR
fixes #415
fixes #413
fixes #388
fixes #387

- Add Layout API functions to retrieve all instances of a subplot (e.g. all x axes)
- fix some typos in dynamic member setters
- add various layout object/API tests
- remove all existing axes/subplot layouts before adding a single new one each per respective grid cell
- add tests
@kMutagene kMutagene marked this pull request as ready for review May 24, 2024 08:00
@kMutagene kMutagene merged commit 3787bec into dev May 27, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant