display graph after getting name