can't show title in PieGraph
Issue #52
new
i'm trying to use the pie graph and it works very good but i can't use the title for each slice
PieSlice slice = new PieSlice(); slice.setColor(resources.getColor(R.color.green_light)); slice.setSelectedColor(resources.getColor(R.color.red)); slice.setValue(2); slice.setTitle("first"); pg.addSlice(slice);
slice.setTitle("first"); -- this line of the code not working...
how can i use title in the pie graph?
Comments (4)
-
-
Ok , is there a way to add text view on top of the slices ?
-
Can you help me please how to add the labels on the slices of pie chart.
-
repo owner This is not a functionality of the library. Feel free to make and merge it yourself! :)
- Log in to comment
What do you expect setTitle to do?
It is only there for you to identify that slice later, the name is never displayed on screen. Take a look at the sample. The only time the title is displayed is in a toast when the slice is clicked.