You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add marker at center position when user scrolls horizontally. I know "chartTranslated" delegate is called whenever user drags the chart but it doesn't contain the value of "ChartDataEntry" and "Highlighted" like in "chartValueSelected" delegate method.
The text was updated successfully, but these errors were encountered:
markers has nothing to do with your scale or scrolling. To draw markers you only need to give highlight object
/// draws all MarkerViews on the highlighted positionsinternalfunc drawMarkers(context:CGContext)
But notice if you want to use marker not on what you have highlighted, you may need to create another highlight object and manually passed to
// callbacks to update the content
marker.refreshContent(entry: e, highlight: highlight)// draw the marker
marker.draw(context: context, point: pos)
And you also may need to override some method or change the source code. Always remember the library can't satisfy everyone's demand, so don't think the library can do anything you want without changing the source code or override
Also remember ChartMarker is protocol now, it's highly flexible public protocol IMarker: NSObjectProtocol
I am scrolling chart horizontally by increasing scaleX value and enabled drag as described in answer of this question
https://stackoverflow.com/questions/36884745/set-an-horizontal-scroll-to-my-barchart-in-swift/36907495#36907495
I want to add marker at center position when user scrolls horizontally. I know "chartTranslated" delegate is called whenever user drags the chart but it doesn't contain the value of "ChartDataEntry" and "Highlighted" like in "chartValueSelected" delegate method.
The text was updated successfully, but these errors were encountered: