Can draw Graph when opened a file