Unit formats reference
Introduced in GitLab 12.9.
You can select units to format your charts by adding format
to your
axis configuration.
Numbers
For generic data, numbers are formatted according to the current locale.
Formats: number
Examples:
Data | Displayed |
---|---|
10
| 1 |
1000
| 1,000 |
1000000
| 1,000,000 |
Percentage
For percentage data, format numbers in the chart with a %
symbol.
Formats supported: percent
, percentHundred
Examples:
Format | Data | Displayed |
---|---|---|
percent
| 0.5
| 50% |
percent
| 1
| 100% |
percent
| 2
| 200% |
percentHundred
| 50
| 50% |
percentHundred
| 100
| 100% |
percentHundred
| 200
| 200% |
Duration
For time durations, format numbers in the chart with a time unit symbol.
Formats supported: milliseconds
, seconds
Examples:
Format | Data | Displayed |
---|---|---|
milliseconds
| 10
| 10ms |
milliseconds
| 500
| 100ms |
milliseconds
| 1000
| 1000ms |
seconds
| 10
| 10s |
seconds
| 500
| 500s |
seconds
| 1000
| 1000s |
Digital (Metric)
Converts a number of bytes using metric prefixes. It scales to use the unit that’s the best fit.
Formats supported:
decimalBytes
kilobytes
megabytes
gigabytes
terabytes
petabytes
Examples:
Format | Data | Displayed |
---|---|---|
decimalBytes
| 1
| 1B |
decimalBytes
| 1000
| 1kB |
decimalBytes
| 1000000
| 1MB |
kilobytes
| 1
| 1kB |
kilobytes
| 1000
| 1MB |
kilobytes
| 1000000
| 1GB |
megabytes
| 1
| 1MB |
megabytes
| 1000
| 1GB |
megabytes
| 1000000
| 1TB |
Digital (IEC)
Converts a number of bytes using binary prefixes. It scales to use the unit that’s the best fit.
Formats supported:
bytes
kibibytes
mebibytes
gibibytes
tebibytes
pebibytes
Examples:
Format | Data | Displayed |
---|---|---|
bytes
| 1
| 1B |
bytes
| 1024
| 1KiB |
bytes
| 1024 * 1024
| 1MiB |
kibibytes
| 1
| 1KiB |
kibibytes
| 1024
| 1MiB |
kibibytes
| 1024 * 1024
| 1GiB |
mebibytes
| 1
| 1MiB |
mebibytes
| 1024
| 1GiB |
mebibytes
| 1024 * 1024
| 1TiB |
Help and feedback
If there's something you don't like about this feature
To propose functionality that GitLab does not yet offer
To further help GitLab in shaping new features
If you didn't find what you were looking for
If you want help with something very specific to your use case, and can use some community support
POST ON GITLAB FORUM
If you have problems setting up or using this feature (depending on your GitLab subscription)
REQUEST SUPPORT
To view all GitLab tiers and features or to upgrade
If you want to try all features available in GitLab.com
If you want to try all features available in GitLab self-managed
If you spot an error or a need for improvement and would like to fix it yourself in a merge request
EDIT THIS PAGE
If you would like to suggest an improvement to this doc