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:
parent
4e5c7414e7
commit
88dda1987f
@ -113,6 +113,41 @@ export const ProjectHealthChart: VFC<IProjectHealthChartProps> = ({
|
|||||||
? {}
|
? {}
|
||||||
: {
|
: {
|
||||||
parsing: { yAxisKey: 'health', xAxisKey: 'date' },
|
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}
|
cover={notEnoughData ? <NotEnoughData /> : isLoading}
|
||||||
|
Loading…
Reference in New Issue
Block a user