update graphs by category