For feedback on the UI graph view when running a t...
# ask-community
s
For feedback on the UI graph view when running a task, it would be great to try and separate out vertical and horizontal zooming. Any task which takes more than a few seconds to run requires zooming out on the chart, which means you just get a ThinGreenLine. Most timeseries charts (such as finance tickers, grafana, etc) allow you to zoom in and out on the time range while keeping the y axis autoscaled. Obviously that wont work nicely for prefect with many many tasks, but I feel like there has to be a better solution than the current implementation. I'd like to suggest a default behaviour of "zooming out stops impacting the y-axis and only impacts the time axis when the min and max vertical extents are visible in the plot" This should cater for zooming in and out of complex tasks where you may want to visualise hundreds of task runs, and also allow users to "find" the plots if they manage to pan their chart away from where things are (as the min/max condition is false they could zoom out until seeing the plot, and then zoom back in)
c
@Samuel Hinton we do support what we call "horizontal scaling". Which I think it what you're looking for here. In the graph settings there is a section called "scaling" where you can control this. You can also use the
+
and
-
on your keyboard to control this. Does that help?
s
I've always found the scaling section there doesnt really work. Hitting "Reset" doesnt do anything useful, and hitting the
-
a few times seems to take the plot to a section of the canvas with nothing on it. Here's a video recording showing these issues
c
What’s the outcome you’re looking for? Especially when you were full screen things seem to be working well from what I could see. It might not be intuitive but the + and - will change the scale. Which is basically a number multiplier. So try using the + as well as the -. And reset just reverts the multiplier back to the original value.
s
+ and - should change zoom level (ideally horizontal zoom level), not pan the plot. You can see how at the end hitting
-
kept taking me further ahead in time, even though there were no tasks there. Zooming out shouldnt move tasks off screen. Similarly, the reset button I would expect to reset the view so that the collection of tasks fill the horizontal and vertical space, but it doesnt seem to do this. Can you shed some light on what Reset is intended to do?
c
The + and - does change the zoom so to speak. But it looks like it could do a better job keeping the same point centered on the screen. If you change the scale you’ll see the task bars get smaller when you press - (decrease the scale) and they get larger when you press + (increase the scale). But it’s really a zoom. The layout will actually update and shift based on the new size of the bars. I see the frustration here though, would you mind opening an issue describing the behavior you’d like to see here? Be good to see if other users feel the same way.
🙏 1
s