add dynamic graph