VSA "Time to complete stage" chart displays no data point when data is 0

Summary

VSA "Stage time" chart doesn't draw any point when data for given day is rounded to zero. Example:

image

while the API call returns 26596.320536303272 seconds for that day which is roughly 0.3 days. I guess the chart rounds it down to 0 and doesn't display 0s.

Example Project

https://gitlab.com/groups/gitlab-org/-/analytics/value_stream_analytics?created_after=2022-06-20&created_before=2022-07-19&value_stream_id=1341&stage_id=4187&sort=end_event&direction=desc&page=1

What is the expected correct behavior?

Dots with 0 as value should be rendered. Without it chart looks significantly different from real chart. image

Possible fixes

  1. Change display unit from days to at least hours to provide better vision.
  2. Display dots with 0 as value.

/cc @ekigbo @hsnir1