I know this is a duplicate link question
I followed the same, but I get the following error:
@Override
public void onValueSelected(Entry e, Highlight h) {
String xAxisValue = mChart.getData().getXVals().get(e.getXIndex());
}
ERROR: cannot resolve getXVals () and cannot resolve getXIndex ()
Please help: I have the following x-axis values: India, Australia, USA, China
When clicking a panel in barchart I need to get one of the lines above
source
share