intitializing graph without cclicking input button now works