update categoryByPiece, but need to get category in piechart