Skip to content

Line chart visualizations axes don't start at 0

Elwyn Benson requested to merge 393952-default-vis-options-y-0 into master

What does this MR do and why?

Add a default visualization option for yAxis.min: 0 for both LineChart and ColumnChart components. This means when a user has not specified a value for this in their visualization definition, the component will use the default value 0 when rendering.

Screenshots or screen recordings

before after
image image

How to set up and validate locally

Install the product analytics devkit and connect to your GDK by following the instructions here: https://gitlab.com/gitlab-org/analytics-section/product-analytics/devkit

  1. Visit a dashboard: http://gdk.test:3000/gitlab-org/gitlab-shell/-/analytics/dashboards/dashboard_behavior
  2. Verify the charts all start from 0 on the y axis
  3. Add a custom dashboard visualization and modify the options.yAxis.min value, and check it is respected when viewing the dashboard

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #393952 (closed)

Edited by Elwyn Benson

Merge request reports