rename updateBoxesForGraph to renderBoxesByGraph