watchgraph --interval=500ms <some command that simply returns an integer>
I needed this for testing a search API that returned some JSON which contained the time taken to conduct the search. The
command you run is passed to Bash so you can use pipes and stuff. In the demo, I used jq
to extract the time taken
value as an integer which is passed to the graph and rendered.