From 5d1a0595222eab677478f9b1fe2cabc73f560833 Mon Sep 17 00:00:00 2001
From: Liliana Sanfilippo <liliana.sanfilippo@uni-bielefeld.de>
Date: Sun, 29 Sep 2024 14:41:56 +0200
Subject: [PATCH] Pie Charts Titles

---
 src/components/Graph.tsx | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/components/Graph.tsx b/src/components/Graph.tsx
index a52d18ed..5414a7ff 100644
--- a/src/components/Graph.tsx
+++ b/src/components/Graph.tsx
@@ -172,7 +172,9 @@ export const WhoAffectedatients: React.FC = () => {
     plugins: {
       title: {
         display: true,
-        text: 'Are you affected by cystic fibrosis yourself or are you related to someone with cystic fibrosis?',
+        text: [
+          'Are you affected by cystic fibrosis yourself ', 'or are you related to someone with cystic fibrosis?'
+        ],
       },
     }
   };
@@ -322,7 +324,7 @@ export const HowMuchDoesItAffectYouatients: React.FC = () => {
         },
         title: {
           display: true,
-          text: "How much does cystic fibrosis affect your or your relative's daily life? (1 = Not at all, 5 = Very much)"
+          text: ["How much does cystic fibrosis affect your or your relative's ", "daily life? (1 = Not at all, 5 = Very much)"]
         },
       },
     };
@@ -445,7 +447,7 @@ export const BasicPositionatients: React.FC = () => {
         },
         title: {
           display: true,
-          text: 'What is your basic position on gene therapy? (1=Very negative, 5=Very positive)',
+          text: ['What is your basic position on gene therapy?',' (1=Very negative, 5=Very positive)']
         },
       },
     };
@@ -805,7 +807,7 @@ export const WhatCouldGeneTherapyMeanForMedicinePublic: React.FC = () => {
 
 
 export const WhatMeasuresPublic: React.FC = () => {
-  const labels = ['Publicity campaigns on TV, radio and social media', 'Information events in schools and communities', "Information materials in doctors' surgeries and hospitals", 'Organization of fundraising runs and charity events', 'Online platforms and forums for affected and interested parties', 'Cooperation with companies for awareness-raising initiatives', 'Integration of the topic into school lessons', 'Documentaries and short films about life with cystic fibrosis'];
+  const labels = ['Media', 'Schools and Communities', "Doctors", 'Charities and Findraisers', 'Online Platforms and Forums', 'Cooperations with Companies', 'School Lessons', 'Documentaries and Short Films'];
 
   const data = {
       labels,
-- 
GitLab