Add value units to VSA "Stage time chart"
Problem to solve
Some users of VSA are unsure if the VSA stage time chart is displaying stage time in days or hours. There are different units in view on the screen and no units on the chart. This is made harder if users can't make the link between values in the path component and individual data points on the chart.
Based on conversation on slack
Haim is "Stage time... Average time to completion" when viewing a custom stage in a VSA report based on days or hours?
I ask because looking at https://gitlab.com/groups/gitlab-org/-/analytics/value_stream_analytics?created_after=2022-06-09&created_before=2022-07-08&value_stream_id=491&stage_id=890&sort=end_event&direction=desc&page=1, the "Ready for Development" button says
2wbut the average of all the values on the chart is ~45 (which is not anywhere close to 2 weeks)
It should be days. Looks like we miss the (days) for the Y axis.
average of all the values on the chart is ~45 (which is not anywhere close to 2 weeks) These are differently aggregated metrics
- 2w is median (top)
- for each day we aggregate the durations of the finished items (average). (each dot on the chart)
Solution
Make units clearer within the context of the chart.
- Add unit
(Days)to the chart y-axis title. - Append unit
day|daysto the popover content. - Remove
(Date)from the popover content.
| Total time | Stage time |
|---|---|
![]() |
![]() |
I didn't see any formatting guidance in Pajamas for units in charts. In the popover I chose to include the unit in the value of the key:value pair. This mirrors pattern in the path.

