NB! It seems this console command is not compatible with CS2.
Command Profile

NET_GRAPHMSECS

CS:GO

This command sets the amount of seconds that the latency graph should represent. Default is 400.

Syntax
net_graphmsecs [Milliseconds]

Description

This command sets the amount of seconds that the latency graph should represent. Default is 400.

How To Use net_graphmsecs

  1. Enable the developer console in Counter-Strike settings.
  2. Open the console with the tilde key (~).
  3. Enter net_graphmsecs [Milliseconds], replacing bracketed arguments with the value you want, then press Enter.

This legacy command is not currently listed as compatible with Counter-Strike 2.

Syntax And Arguments

net_graphmsecs [Milliseconds]
Milliseconds The amount of milliseconds that the latency graph should repesent. 1000 = 1 second.

Related Commands