highlightValue4 method
Highlights any y-value at the given x-value in the given DataSet.
Provide -1 as the dataSetIndex to undo all highlighting.
@param x The x-value to highlight
@param y The y-value to highlight. Supply NaN
for "any"
@param dataSetIndex The dataset index to search in
@param callListener Should the listener be called for this change
Implementation
void highlightValue4(
double x, double y, int dataSetIndex, bool callListener) {
if (dataSetIndex < 0 || dataSetIndex >= _data!.getDataSetCount()) {
highlightValue6(null, callListener);
} else {
highlightValue6(
Highlight(x: x, y: y, dataSetIndex: dataSetIndex), callListener);
}
}