Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Hover Tooltip is offset from mouse cursor #921

Open
PG2001 opened this issue Feb 17, 2019 · 1 comment
Open

Hover Tooltip is offset from mouse cursor #921

PG2001 opened this issue Feb 17, 2019 · 1 comment

Comments

@PG2001
Copy link

PG2001 commented Feb 17, 2019

Instructions: replace text surrounded by '*' with your case, please delete this line.

How to reproduce?

Tooltip doesn't line up next to mouse on left half of screen. Chart is created dynamically and loaded into a DockPanel.

Extra notes

tooltip-mouse

I am using

your windows version here*/tr>
Live-Charts version LiveCharts.Wpf.0.9.7
.Net Version .NET Framework 4.7.1
Windows Windows 10
@npkalala
Copy link

The Reason why it's not work as what we think was shwon as below :
image

Now, You have 2 solutions to solve it.
Solution 1.
Step 1. Download the source code, and fix up the issue.
Step 2. Add reference from the project you want.

Solution 2.
Step 1. Create one UserControl for youself (e.g. MyChart) that is inherit from CartesianChart. And Override Method "GetTooltipPosition" As the pic shown as below.
image
Step 2. Compile and get your UserControl.
Step 3. Add the UserControl to your .xaml file
Step 4. Replace the CartesianChart with your UserControl
Step 5. Done.

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

No branches or pull requests

2 participants