From 7548fa9e2d09ed692c0e43f39cf48557e01be504 Mon Sep 17 00:00:00 2001
From: Liliana Sanfilippo <liliana.sanfilippo@uni-bielefeld.de>
Date: Fri, 27 Sep 2024 17:32:59 +0200
Subject: [PATCH] graphs

---
 src/components/Graph.tsx | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/src/components/Graph.tsx b/src/components/Graph.tsx
index bf25514b..be3fbb20 100644
--- a/src/components/Graph.tsx
+++ b/src/components/Graph.tsx
@@ -704,7 +704,7 @@ export const WhatCouldGeneTherapyMeanForMedicinePublic: React.FC = () => {
     labels: ['Major advances in the treatment of diseases', 'Some progress, but also risks', 'More risks than benefits', 'No opinion'],
     datasets: [
       {
-        label: 'Percentage',
+        label: 'General Survey',
         data: [
           49.59,
           47.97,
@@ -737,7 +737,7 @@ export const WhatMeasuresPublic: React.FC = () => {
       labels,
       datasets: [
         {
-          label: '',
+          label: 'General Survey',
           data: [
             22.87,
             13.20,
@@ -761,7 +761,7 @@ export const WhatMeasuresPublic: React.FC = () => {
         },
         title: {
           display: true,
-          text: '',
+          text: 'What measures do you think could be taken to raise awareness of cystic fibrosis?',
         },
       },
     };
@@ -779,7 +779,7 @@ export const WouldYouDoGeneTherapyPublic: React.FC = () => {
     labels: ['Yes', 'No', 'Maybe'],
     datasets: [
       {
-        label: 'Percentage',
+        label: 'General Survey',
         data: [
           85.22,
           13.04,
@@ -793,7 +793,11 @@ export const WouldYouDoGeneTherapyPublic: React.FC = () => {
   };
   const options = {
     responsive: true,
-    maintainAspectRatio: false
+    maintainAspectRatio: false,
+    title: {
+      display: true,
+      text: 'Would you opt for gene therapy yourself?',
+    },
   };
 
   return (
@@ -811,7 +815,7 @@ export const WhatCocernsAboutGeneTherapyPublic: React.FC = () => {
       labels,
       datasets: [
         {
-          label: 'Dataset 1',
+          label: 'General Survey',
           data: [
             4.57,
             14.61,
@@ -832,7 +836,7 @@ export const WhatCocernsAboutGeneTherapyPublic: React.FC = () => {
         },
         title: {
           display: true,
-          text: 'BarChartOneSet',
+          text: 'What concerns do you have about gene therapy?',
         },
       },
     };
@@ -851,7 +855,7 @@ export const WhatFormMoreInfoPublic: React.FC = () => {
       labels,
       datasets: [
         {
-          label: 'Dataset 1',
+          label: 'General Survey',
           data: [
             15.74,
             16.63,
@@ -875,7 +879,7 @@ export const WhatFormMoreInfoPublic: React.FC = () => {
         },
         title: {
           display: true,
-          text: 'BarChartOneSet',
+          text: 'In what form would you like to see more information?',
         },
       },
     };
-- 
GitLab