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

Axes title overlaps other Axes with multi-axis charts #3629

Closed
MPursche opened this issue Mar 12, 2019 · 4 comments
Closed

Axes title overlaps other Axes with multi-axis charts #3629

MPursche opened this issue Mar 12, 2019 · 4 comments
Labels
feature something new

Comments

@MPursche
Copy link
Contributor

Hello,

I have found a bug when using multiple axes in a scatterplot. The title of an axis sometimes overlaps another axis when the chart is resized. I'm trying to create a chart with four y-axes: two on the left and two on the right.
My chart setup can be found here: Codepen Example
The layout works if the chart is wide enough but if the window is resized and the chart is smaller the axes title may overlap another axes. I tried to work around the issue using the axis position, but this does not work for responsive charts as the position is in relative coordinates.
I would expect the placement algorithm for the axis to consider the title and add margins if necessary.

Title don't overlap if chart is wide enough:
Screenshot_20190312_120906
Titles overlap if chart is too narrow:
Screenshot_20190312_120928

Greetings
Marcel

@antoinerg antoinerg added the bug something broken label Mar 12, 2019
@antoinerg
Copy link
Contributor

Thank you @MPursche for reporting this issue!

@etpinard
Copy link
Contributor

etpinard commented Mar 18, 2019

This is the expected behavior (for now). We don't attempt to smartly position axes titles based on the position of other graph components.

Related:

We should probably merge these tickets together. Adding something like axis.title.position: 'auto' could potential help for fixing this problem.

Tagging as feature.

@etpinard etpinard added feature something new and removed bug something broken labels Mar 18, 2019
@etpinard
Copy link
Contributor

One more: #3505

@gvwilson
Copy link
Contributor

Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

No branches or pull requests

4 participants