add legend to category chart