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

pankaj210891 picture pankaj210891  路  15Comments

sbron picture sbron  路  17Comments

Shadie6 picture Shadie6  路  31Comments

xainbutt picture xainbutt  路  34Comments

Paladinko picture Paladinko  路  36Comments