Error while running gpugraph.py?

I am getting the error shown in screenshot after running gpugraph.py. Please provide me the ressolution for this error.
What version of JetPack are you running on which Jetson? Are you running headless?
I am running it on Jetpack 4.6 and my board is Nvidia Jetson AGX Xavier
I am connected to the target through ssh.
I am connected to the target through ssh.
This is a graphical program, are you using VNC or something? The DISPLAY is not set up correctly in your screenshot.
I am connected to my target nvidia platform using VS code through ssh.