PHP loop for sidebar circle graphs