Skip to content

Commit cfaeec0

Browse files
committed
Update TooltipWrapper styling for improved visual clarity; enhance localization for missing data descriptions with clearer tooltip references and structured explanations.
1 parent dbe0c98 commit cfaeec0

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

src/components/TooltipWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function TooltipWrapper({
2525
<TooltipProvider>
2626
<Tooltip>
2727
<TooltipTrigger asChild>
28-
<span className="border-b border-dotted border-gray-400 cursor-help">
28+
<span className="border-b-2 border-dashed border-gray-600 cursor-help">
2929
{children}
3030
</span>
3131
</TooltipTrigger>

src/locales/en.ts

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -159,27 +159,23 @@ export const en = {
159159
'The figures below display the differences in value frequency for a combination of variables. For comparing two categorical variables, bar charts are plotted. For comparing a numerical and a categorical variables, a so called [violin plot](https://en.wikipedia.org/wiki/Violin_plot) is shown. For comparing two numercial variables, a [LOESS plot](https://en.wikipedia.org/wiki/Local_regression) is created. For all plots holds: the synthetic data is of high quality when the shape of the distributions in the synthetic data equal the distributions in the real data.',
160160
moreInfo:
161161
'Do you want to learn more about synthetic data?\n \n \n \n- [python-synthpop on Github](https://github.com/NGO-Algorithm-Audit/python-synthpop)\n- [local-first web app on Github](https://github.com/NGO-Algorithm-Audit/local-first-web-tool/tree/main)\n- [Synthetic Data: what, why and how?](https://royalsociety.org/-/media/policy/projects/privacy-enhancing-technologies/Synthetic_Data_Survey-24.pdf)\n- [Knowledge Network Synthetic Data](https://online.rijksinnovatiecommunity.nl/groups/399-kennisnetwerk-synthetischedata/welcome) (for Dutch public organizations)\n- [Synthetic data portal of Dutch Executive Agency for Education](https://duo.nl/open_onderwijsdata/footer/synthetische-data.jsp) (DUO)\n- [CART: synthpop resources](https://synthpop.org.uk/resources.html)\n- [Gaussian Copula - Synthetic Data Vault](https://docs.sdv.dev/sdv)',
162-
missingData: `For {tooltip:syntheticData.missingDataTooltip}Missing At Random (MAR){/tooltip} and {tooltip:syntheticData.missingDataTooltip}Missing Not At Random (MNAR){/tooltip} data,
163-
we recommend to impute the missing data. For Missing Completely At Random (MCAR), we recommend to remove the missing data. {tooltip:syntheticData.missingDataTooltip}See the info box for more information{/tooltip}.`,
164-
missingDataTooltip: `MCAR, MAR, and MNAR are terms used to describe different mechanisms of missing data:
165-
166-
1. **MCAR (Missing Completely At Random)**:
167-
- The probability of data being missing is completely independent of both observed and unobserved data.
168-
- There is no systematic pattern to the missingness.
169-
- Example: A survey respondent accidentally skips a question due to a printing error.
170-
- Recommendation: remove missing data.
171-
172-
2. **MAR (Missing At Random)**:
162+
missingData: `For {tooltip:syntheticData.missingDataMARTooltip}Missing At Random (MAR){/tooltip} and {tooltip:syntheticData.missingDataMNARTooltip}Missing Not At Random (MNAR){/tooltip} data,
163+
we recommend to impute the missing data. For {tooltip:syntheticData.missingDataMCARTooltip}Missing Completely At Random (MCAR){/tooltip}, we recommend to remove the missing data.`,
164+
missingDataMARTooltip: `**MAR (Missing At Random)**:
173165
- The probability of data being missing is related to the observed data but not the missing data itself.
174166
- The missingness can be predicted by other variables in the dataset.
175167
- Example: Students' test scores are missing, but the missingness is related to their attendance records.
176-
- Recommendation: impute missing data.
177-
178-
3. **MNAR (Missing Not At Random)**:
168+
- Recommendation: impute missing data.`,
169+
missingDataMNARTooltip: `**MNAR (Missing Not At Random)**:
179170
- The probability of data being missing is related to the missing data itself.
180171
- There is a systematic pattern to the missingness that is related to the unobserved data.
181172
- Example: Patients with more severe symptoms are less likely to report their symptoms, leading to missing data that is related to the severity of the symptoms.
182173
- Recommendation: impute missing data.`,
174+
missingDataMCARTooltip: `**MCAR (Missing Completely At Random)**:
175+
- The probability of data being missing is completely independent of both observed and unobserved data.
176+
- There is no systematic pattern to the missingness.
177+
- Example: A survey respondent accidentally skips a question due to a printing error.
178+
- Recommendation: remove missing data.`,
183179
},
184180

185181
biasAnalysis: {

0 commit comments

Comments
 (0)