can't show title in PieGraph

Issue #52 new
Former user created an issue

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)

  1. Scott Baar

    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.

  2. Daniel Nadeau repo owner

    This is not a functionality of the library. Feel free to make and merge it yourself! :)

  3. Log in to comment