-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Marker Position #1876
Comments
Would you please debug highlight.drawX and drawY, to see what's the problem? I tried in ChartsDemo, it's fine. |
so the way to get the markerPosition now seems to be by getting the hightlight.xPx and highlight.xPy. However, these values are given within the bounds of the chartView. |
Yes, it seems that As mentioned @Rnorback you could use
|
I guess you may have to debug why highlight.drawX is 0.0. In charts demo, I am seeing valid values. |
@jndefosse It's an old issue; are you breaking at the beginning? let x = high.x // get the x-position
let y = high.y * Double(animator.phaseY)
if x > chartXMax * animator.phaseX
{
continue
}
let trans = dataProvider.getTransformer(forAxis: set.axisDependency)
let pt = trans.pixelForValues(x: x, y: y) There is chance that x, y is 0 when chart just starts. You are welcome to debug, as I don't know the real issue. No update for quite a while, and Chart marker seems working all the time. |
I've implemented a custom MarkerView, but every time the delegate function is called:
The value of the position is always (0.0, 0.0). But the marker is being designed:
The text was updated successfully, but these errors were encountered: