diff --git a/frontend/src/component/insights/componentsChart/ProjectHealthChart/ProjectHealthChart.tsx b/frontend/src/component/insights/componentsChart/ProjectHealthChart/ProjectHealthChart.tsx index 4253c9a9bf4..130470abe8e 100644 --- a/frontend/src/component/insights/componentsChart/ProjectHealthChart/ProjectHealthChart.tsx +++ b/frontend/src/component/insights/componentsChart/ProjectHealthChart/ProjectHealthChart.tsx @@ -62,16 +62,19 @@ export const ProjectHealthChart: VFC = ({ ); }) .sort((a, b) => (a.week > b.week ? 1 : -1)); - return { datasets: [ { label: 'Health', data: weeks.map((item) => ({ health: item.total - ? ((item.total - item.stale) / item.total) * 100 + ? ( + ((item.total - item.stale) / item.total) * + 100 + ).toFixed(2) : undefined, date: item.date, + total: item.total, })), borderColor: theme.palette.primary.light, backgroundColor: fillGradientPrimary, @@ -93,7 +96,7 @@ export const ProjectHealthChart: VFC = ({