use of org.eazegraph.lib.communication.IOnItemFocusChangedListener in project EazeGraph by blackfizz.
the class PieChartFragment method loadData.
private void loadData() {
mPieChart.addPieSlice(new PieModel("Freetime", 15, Color.parseColor("#FE6DA8")));
mPieChart.addPieSlice(new PieModel("Sleep", 25, Color.parseColor("#56B7F1")));
mPieChart.addPieSlice(new PieModel("Work", 35, Color.parseColor("#CDA67F")));
mPieChart.addPieSlice(new PieModel("Eating", 9, Color.parseColor("#FED70E")));
mPieChart.setOnItemFocusChangedListener(new IOnItemFocusChangedListener() {
@Override
public void onItemFocusChanged(int _Position) {
// Log.d("PieChart", "Position: " + _Position);
}
});
}
Aggregations