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

Having 2 Y Axes on CartesianChart causes XAxis to separate from Frame #1587

Open
MajesticBevans opened this issue Sep 11, 2024 · 0 comments
Open

Comments

@MajesticBevans
Copy link

Describe the bug
Slightly difficult to describe beyond the title, but the screenshots should articulate what I mean. Essentially the X Axis ticks and labels move away from the CartesianChart when a second Y Axis is added, but the DrawMarginFrame does not move, leaving the X axis to sort of 'float'. Only a visual bug, but worth logging.

To Reproduce
Steps to reproduce the behavior (tested using Avalonia on Windows):

  1. Create a CartesianChart with a DrawMarginFrame, one X axis and one Y axis. Everything should look normal.
  2. Adding a second Y Axis (on the other side) then causes the X Axis to peel away from the frame.

Expected behavior
Either the X Axis ticks should not move down when the second axis is added, or the frame should move with the axis.

Screenshots
Single axis, where X axis is where it should be:
image
Double Y Axis, where X axis ticks and label move downwards, but frame does not follow:
image
Zoomed in image of X Axis peeling away:
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Version rc2

Additional context
Add any other context about the problem here.

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

No branches or pull requests

1 participant