Remove unnecessary decimal places on all charts containing axes
Problem to solve
Helps mitigate lengthy axis labels
Intended users
All users of the metrics dashboard
Proposal
If an axis label is an integer, simply display it as an integer, and if decimal values are needed use only the amount necessary up to 3 decimal places
Exit criteria
- Apply this formatter to all charts that contain axes (eg. line chart, area chart, column chart..etc)
- Apply this on the gitlab-ui component level so that it's turned on by default
Examples
before | after |
---|---|
Edited by Clement Ho