Search code examples
androidandroidplot

How can I increase the thickness of lines in android plot line graph?


I searched for this . but I didn't find anything useful. In the Documentation of LineAndPointFormatter class there is nothing mentioned about thickness .. Help me to solve this problem.


Solution

  • May this help you:

        LineAndPointFormatter lineAndPointFormatter = new LineAndPointFormatter(Color.rgb(0, 0, 0), null, null);
    
        //change the line width
        Paint paint = lineAndPointFormatter.getLinePaint();
        paint.setStrokeWidth(3);
        lineAndPointFormatter.setLinePaint(paint);