getHighlight method
Implementation
@override
Highlight? getHighlight(double x, double y) {
BarData? barData = provider!.getBarData();
MPPointD pos = getValsForTouch(y, x);
Highlight? high = getHighlightForX(pos.y, y, x);
if (high == null) return null;
IBarDataSet set = barData!.getDataSetByIndex(high.dataSetIndex ?? 0)!;
if (set.isStacked()) {
return getStackedHighlight(high, set, pos.y, pos.x);
}
MPPointD.recycleInstance2(pos);
return high;
}