mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-04 00:18:40 +01: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.  fixes #2107
This commit is contained in:
parent
343e561bc4
commit
670b97dede
@ -65,6 +65,8 @@ export const createChartOptions = (
|
||||
display: true,
|
||||
text: 'Number of requests',
|
||||
},
|
||||
// min: 0,
|
||||
suggestedMin: 0,
|
||||
ticks: { precision: 0 },
|
||||
},
|
||||
x: {
|
||||
|
@ -33,7 +33,7 @@ export const FeatureMetricsHours = ({
|
||||
const parseFeatureMetricsHour = (value: unknown) => {
|
||||
switch (value) {
|
||||
case '1':
|
||||
return 1;
|
||||
return 2;
|
||||
case '24':
|
||||
return 24;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user