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

MinLimit yaxis labels not displayed #1719

Open
jaeaton opened this issue Dec 5, 2024 · 1 comment
Open

MinLimit yaxis labels not displayed #1719

jaeaton opened this issue Dec 5, 2024 · 1 comment
Labels
more info required not verified It is probably an issue, but we have not enough evidence to mark this as a bug.

Comments

@jaeaton
Copy link

jaeaton commented Dec 5, 2024

Describe the bug
Setting MinLimit = 0 on the Yaxis causes no labels to be generated. This occurs when no MaxLimit is set. If MaxLimit is set to a value this issue is not present.

To Reproduce
Steps to reproduce the behavior:

  1. Create a YAxes List
  2. Create a new axis
  3. Set MinLimit = 0
  4. Plot Data

Expected behavior
I expect that setting the MinLimit would prevent the chart from displaying values below the limit (which it does), but not affect the display of the YAxis labels.

Screenshots
MinLimit Not Set
image
MinLimit = 0
image

Desktop (please complete the following information):

  • OS: Windows
    -Avalonia
  • 2.0.0 RC4

Additional context
Add any other context about the problem here.

@beto-rodriguez
Copy link
Owner

Hello and thanks for the report.

I am sorry, i was not able to reproduce the issue with the given steps, am i missing something?

Could you please provide a small repo/sample where this issue occurs?

for me this works:

public ISeries[] Series { get; set; } = [
    new LineSeries<double>([140, 130, 140, 150, 170])
];

public ICartesianAxis[] YAxes { get; set; } = [
    new Axis { MinLimit = 0 }
]

image

@beto-rodriguez beto-rodriguez added more info required not verified It is probably an issue, but we have not enough evidence to mark this as a bug. labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info required not verified It is probably an issue, but we have not enough evidence to mark this as a bug.
Projects
None yet
Development

No branches or pull requests

2 participants