1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

feat: project health chart now goes from 0 to 100 to give perspective (#7249)

![image](https://github.com/Unleash/unleash/assets/964450/ab56de69-bed5-4b2c-8ff9-b1cc3db8dd4b)
This commit is contained in:
Jaanus Sellin 2024-06-04 10:18:20 +03:00 committed by GitHub
parent 4e5c7414e7
commit 88dda1987f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,6 +113,41 @@ export const ProjectHealthChart: VFC<IProjectHealthChartProps> = ({
? {}
: {
parsing: { yAxisKey: 'health', xAxisKey: 'date' },
scales: {
y: {
min: 0,
max: 100,
beginAtZero: true,
type: 'linear',
grid: {
color: theme.palette.divider,
borderColor: theme.palette.divider,
},
ticks: {
color: theme.palette.text.secondary,
display: true,
precision: 0,
},
},
x: {
type: 'time',
time: {
unit: 'week',
tooltipFormat: 'PPP',
},
grid: {
color: 'transparent',
borderColor: 'transparent',
},
ticks: {
color: theme.palette.text.secondary,
display: true,
source: 'data',
maxRotation: 90,
minRotation: 23.5,
},
},
},
}
}
cover={notEnoughData ? <NotEnoughData /> : isLoading}