code: private void drawPath(Canvas canvas, final Line line) {
          prepareLinePaint(line);
  
          int valueIndex = 0;
          for (PointValue pointValue : line.getValues()) {
  
              final float rawX = computator.computeRawX(pointValue.getX());
              final float rawY = computator.computeRawY(pointValue.getY());
  
              if (valueIndex == 0) {
                  path.moveTo(rawX, rawY);
              } else {
                  path.lineTo(rawX, rawY);
              }
  
              ++valueIndex;
  
          }
  
          canvas.drawPath(path, linePaint);
  
          if (line.isFilled()) {
              drawArea(canvas, line);
          }
  
          path.reset();
      }
docs: Draws lines, uses path for drawing filled area on software canvas. Line is drawn with canvas.drawLines() method.