graph is drawing based on the entity id