1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00

fix: set suggested min value to 0 (#2363)

This PR does one thing, it sets the y-axis to start at "0" when showing
request counts over time.


![image](https://user-images.githubusercontent.com/158948/200946347-b3e803c6-6ace-4ecc-b5cf-aa92a5505331.png)

fixes #2107
This commit is contained in:
Ivar Conradi Østhus 2022-11-09 22:43:13 +01:00 committed by GitHub
parent 343e561bc4
commit 670b97dede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -65,6 +65,8 @@ export const createChartOptions = (
display: true,
text: 'Number of requests',
},
// min: 0,
suggestedMin: 0,
ticks: { precision: 0 },
},
x: {

View File

@ -33,7 +33,7 @@ export const FeatureMetricsHours = ({
const parseFeatureMetricsHour = (value: unknown) => {
switch (value) {
case '1':
return 1;
return 2;
case '24':
return 24;
default: