How to get label for corresponding swipe in barchart of mpandroidchart?
<p>How to get label for corresponding bar when I swipe the barchart? I have another textview outside of barchart. When I swipe mpandroidchart graph, I need to get x axis label of corresponding position and display in textview. How to do that? </p>

<p>I tried with this.</p>

<pre><code> barChart.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
        @Override
        public void onValueSelected(Entry e, int dataSetIndex, Highlight h) {
            Log.i("Entry", String.valueOf(e));
        }

        @Override
        public void onNothingSelected() {

        }
    });
</code></pre>

<p>or OnChartGestureListener too, I tried but I don't know how to get the label of the corresponding bar. </p>