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
(void)chartTranslated:(ChartViewBase * _Nonnull)chartView dX:(CGFloat)dX dY:(CGFloat)dY How to get the index of the data source corresponding to the central location in the sliding proxy
The text was updated successfully, but these errors were encountered:
@MonekyHou Not sure if this will help you, but I used something similar to this to highlight the 'middle' point:
func chartTranslated(_ chartView: ChartViewBase, dX: CGFloat, dY: CGFloat) {
let x = Double(bounds.width/2)
let selectionPoint = CGPoint(x: x, y: 0)
let h = getHighlightByTouchPoint(selectionPoint)
highlightValue(h, callDelegate: true)
}
func chartValueSelected(_ chartView: ChartViewBase, entry: ChartDataEntry, highlight: Highlight) {
// Here you have access to the entry at the 'middle' point
}
The text was updated successfully, but these errors were encountered: