1. Daniel Nadeau
  2. HoloGraphLibrary
  3. Issues
Issue #45 new

Text over pieChart

Anonymous created an issue

How can we set percentage values over the piechart slices?

Comments (7)

  1. Erhan Asikoglu

    ok i got to solution with

            pPaint.reset();
            pPaint.setAntiAlias(true);
            pPaint.setColor(getResources().getColor(R.color.white));
            pPaint.setTextSize(20);
    
            canvas.drawTextOnPath(slice.getTitle(),p,30,30,pPaint);
    

    but the problem is i want to show them in readable, i mean, i need to show text flat. how can i achieve this?

  2. Ryan Gurney

    I am very interested in a solution to put text directly in the middle of the pie chart. I have tried overlapping the xml to no effect. Sorry for the noob question, but does anyone have a quick fix to this problem?

  3. Log in to comment