gping icon indicating copy to clipboard operation
gping copied to clipboard

[Feature request] bring a parameter to customize the number of horizontal coordinate points?

Open wxlg1117 opened this issue 2 years ago • 2 comments

The graphics generated by this tool are very good, but when the execution time is relatively long, such as 24 hours, there are still only three coordinate points on the horizontal axis in the generated graph, which is not easy to compare. Can there be a parameter to customize the coordinate points on the horizontal axis Quantity? Or customize the horizontal axis coordinate point interval, such as one point every ten minutes?

PS:Whether the coordinate point time on the horizontal axis can carry the date?

Snipaste_2023-01-17_19-13-37

wxlg1117 avatar Jan 17 '23 17:01 wxlg1117

Hey @wxlg1117, thanks for the request! Let me have a think about it. I'd rather not add yet another CLI flag for this, but I do agree that we could do with some more labels on the x axis.

About the date, I'm not sure we have the space. Maybe instead we could add a "relative days"? i.e 19:46:49 (-1) that would mean "19:46 yesterday"? Open to suggestions!

orf avatar Jan 17 '23 22:01 orf

@orf Can we use some relative time in the x-axis to save space? In most cases, the user doesn't need every specific time stamp.

Example 1 : [-12, -10, -8, -6, -4, -2, 10:12:22]

Example 2 : [:10, :12, :14, :16, :18, :20, 10:12:22]

@wxlg1117 how do you feel like this?

TieWay59 avatar Sep 11 '23 10:09 TieWay59