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

Tooltip display position bug in chart between 0 and 1 #764

Closed
powerpdw opened this issue Nov 22, 2022 · 1 comment
Closed

Tooltip display position bug in chart between 0 and 1 #764

powerpdw opened this issue Nov 22, 2022 · 1 comment
Labels
priority 0 needs to be fixed asap. visual glitch

Comments

@powerpdw
Copy link

Describe the bug
When axis range is 0~1, tooltip display position is wrong.

To Reproduce
Steps to reproduce the behavior:

  1. Project: ViewModelsSamples, In VisualStudio
  2. Open Scatter-Basic-ViewModel.cs
  3. Modify the point values as shown below.

image

4. Build and Execute WinUISample.exe 5. When you select the Scatter-Basic chart, you can see that the location of the tooltip is wrong.

Expected behavior
The tooltip should be displayed near the point

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser : Not used. It's WinUI3 Environment

Additional context
I modified the code temporarily as follows. I hope it's useful.
Project: LiveChartCore
File: ScatterSeries.cs
Method: public override void Measure(Chart chart)

//Changes to correct problems where tooltips are not displayed properly in a range of less than 1
//uwx = uwx < gs ? gs : uwx;
//uwy = uwy < gs ? gs : uwy;
uwx = (uwx > 1) ? (gs + 2) : (uwx < gs ? gs : uwx);
uwy = (uwy > 1) ? (gs + 2) : (uwy < gs ? gs : uwy);

@beto-rodriguez beto-rodriguez added visual glitch priority 1 might not be fixed in the next release of the library, but it will soon! labels Dec 18, 2022
@beto-rodriguez
Copy link
Owner

This was fixed with #1028

tt

Thanks for the report!

@beto-rodriguez beto-rodriguez added priority 0 needs to be fixed asap. and removed priority 1 might not be fixed in the next release of the library, but it will soon! labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority 0 needs to be fixed asap. visual glitch
Projects
None yet
Development

No branches or pull requests

2 participants