locust icon indicating copy to clipboard operation
locust copied to clipboard

Add date to charts in web UI

Open kentmartin73 opened this issue 10 months ago • 2 comments

Prerequisites

Description

The charts produced by the UI are great for an overview of what happened when, but when doing load and stability tests that run for days, it is very difficult to see which day what happened. Adding the date to the X axis in addition to the time and/or the mouseover information would make the charts a lot easier to read in these circumstances

kentmartin73 avatar Apr 17 '24 17:04 kentmartin73

I think that sounds like a useful option, maybe even something that could be automatically enabled once the test runs for more than 24. But someone needs to build it :)

cyberw avatar Apr 17 '24 19:04 cyberw

I would also say that it could be quite useful being able to zoom in on the charts, also for having a better visibility in the tests that run for days.

alejandro-carmena avatar May 14 '24 09:05 alejandro-carmena

I think trying to detect when the test runs for more than 24hr to display the date adds too much overhead, not to mention adding the date to the x axis makes it quiet difficult to read. I would suggest displaying keeping the display on the x axis and add the full timestamp to the tooltip (on mouseover) image On the frontend it would be straightforward, we would just need to modify the stats and history in the backed to return a UTC timestamp instead of just the current time. What do you think @cyberw?

Also for zooming this is supported in echarts so I will add it :+1:

andrewbaldwin44 avatar May 25 '24 19:05 andrewbaldwin44

Sounds good!

cyberw avatar May 25 '24 20:05 cyberw

#2731 was merged, this should be closed, right? @cyberw

JavierUhagon avatar May 27 '24 12:05 JavierUhagon