Mpandroidchart: how to get the label onValueSelected in Pie chart

Created on 25 Nov 2016  路  2Comments  路  Source: PhilJay/MPAndroidChart

how to get the label onValueSelected in Pie chart

Most helpful comment

@Override
public void onValueSelected(Entry e, Highlight h) {

    PieEntry pe = (PieEntry) e;

    pe.getLabel();

}

All 2 comments

@Override
public void onValueSelected(Entry e, Highlight h) {

    PieEntry pe = (PieEntry) e;

    pe.getLabel();

}

thanks much the solution works and is there any ways to get the selected pie slice color?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andreyfel picture andreyfel  路  3Comments

AiTheAnswer picture AiTheAnswer  路  3Comments

manucheri picture manucheri  路  3Comments

rohitkumarbhagat picture rohitkumarbhagat  路  3Comments

OnlyInAmerica picture OnlyInAmerica  路  3Comments