Skip to content

Commit

Permalink
fixed modal texts
Browse files Browse the repository at this point in the history
  • Loading branch information
tfhuhtal committed Oct 25, 2024
1 parent 6441a27 commit d6199f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions client/components/ReportPage/ColorAnswers.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ const ColorAnswers = ({ year, allAnswers, questionsList, chosenProgrammes, setAc

const showFacultyPie = form === formKeys.EVALUATION_FACULTIES

console.log(form)

return (
<div className="tab-pane" ref={componentRef}>
<Grid className="header">
Expand Down
12 changes: 6 additions & 6 deletions client/components/ReportPage/PieChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ export default ({
{
color: colors.background_green,
toolTipColor: 'green',
toolTipHeader: t('positive'),
toolTipHeader: form === formKeys.META_EVALUATION ? t('nonUrgent') : t('positive'),
value: colorSums.green.value || 0,
programmes: colorSums.green.programmes,
},
{
color: colors.background_yellow,
toolTipColor: 'yellow',
toolTipHeader: t('neutral'),
toolTipHeader: form === formKeys.META_EVALUATION ? t('semiUrgent') : t('neutral'),
value: colorSums.yellow.value || 0,
programmes: colorSums.yellow.programmes,
},
{
color: colors.background_red,
toolTipColor: 'red',
toolTipHeader: t('negative'),
toolTipHeader: form === formKeys.META_EVALUATION ? t('urgent') : t('negative'),
value: colorSums.red.value || 0,
programmes: colorSums.red.programmes,
},
Expand All @@ -98,7 +98,7 @@ export default ({
data.push({
color: colors.gray,
toolTipColor: 'gray',
toolTipHeader: t('gray'),
toolTipHeader: t('irrelevant'),
value: colorSums.gray.value || 0,
programmes: colorSums.gray.programmes,
})
Expand Down Expand Up @@ -193,10 +193,10 @@ export default ({
lineWidth={100}
label={({ dataEntry }) => (dataEntry.percentage > 0.5 ? `${Math.round(dataEntry.percentage)} %` : null)}
paddingAngle={0}
radius={40}
radius={35}
startAngle={270}
labelStyle={{ fontSize: '5px', fontWeight: 'bold' }}
labelPosition={80}
labelPosition={112}
onClick={(e, segmentIndex) => toolTipText(segmentIndex)}
/>
</div>
Expand Down

0 comments on commit d6199f8

Please sign in to comment.