Completion is based on the resolution (not on the status).

The Completed Issues bar displays the amount of completed issues connected to the epic or issue.