diff --git a/frontend/src/component/insights/componentsChart/ProjectHealthChart/ProjectHealthChart.tsx b/frontend/src/component/insights/componentsChart/ProjectHealthChart/ProjectHealthChart.tsx index 1543b3bf8c..e368d930b6 100644 --- a/frontend/src/component/insights/componentsChart/ProjectHealthChart/ProjectHealthChart.tsx +++ b/frontend/src/component/insights/componentsChart/ProjectHealthChart/ProjectHealthChart.tsx @@ -113,6 +113,41 @@ export const ProjectHealthChart: VFC = ({ ? {} : { 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 ? : isLoading}