From a642896079963472238386a6f115f3f61e1af584 Mon Sep 17 00:00:00 2001 From: jerem Date: Mon, 11 Mar 2024 15:47:12 +0100 Subject: [PATCH] add first chart / success - part 2 --- .../european-projects/charts-config.json | 11 +++- .../components/chart-wrapper/index.tsx | 17 +++--- .../charts/funding-ranking/index.tsx | 61 +++++++++++++------ .../funding-ranking/options-succes-rate.tsx | 56 +++++++++++++++++ .../charts/funding-ranking/options.tsx | 2 +- .../pages/analysis/positioning/index.tsx | 3 +- 6 files changed, 122 insertions(+), 28 deletions(-) create mode 100644 client/src/pages/european-projects/components/pages/analysis/positioning/charts/funding-ranking/options-succes-rate.tsx diff --git a/client/src/pages/european-projects/charts-config.json b/client/src/pages/european-projects/charts-config.json index d5d0d4a88..9a650e1d4 100644 --- a/client/src/pages/european-projects/charts-config.json +++ b/client/src/pages/european-projects/charts-config.json @@ -55,7 +55,16 @@ "id": "fundingRankingSub", "title": "", "subtitle": "Subventions demandées et obtenues (M€) par pays", - "description": "Ad duis occaecat voluptate deserunt tempor enim nulla officia.", + "description": null, + "source": "Commission européenne, Cordis", + "sourceURL": "https://cordis.europa.eu/", + "integrationURL": "/european-projects/components/pages/analysis/positioning/charts/top-10-participating-organizations" + }, + { + "id": "fundingRankingSubSuccessRate", + "title": "", + "subtitle": "Taux de succès sur les montants par pays", + "description": null, "source": "Commission européenne, Cordis", "sourceURL": "https://cordis.europa.eu/", "integrationURL": "/european-projects/components/pages/analysis/positioning/charts/top-10-participating-organizations" diff --git a/client/src/pages/european-projects/components/chart-wrapper/index.tsx b/client/src/pages/european-projects/components/chart-wrapper/index.tsx index 3c38c31c8..ab35b8435 100644 --- a/client/src/pages/european-projects/components/chart-wrapper/index.tsx +++ b/client/src/pages/european-projects/components/chart-wrapper/index.tsx @@ -41,16 +41,17 @@ export default function ChartWrapper({ id, options, legend }) {
{legend} - -
-
-
- - {graphConfig.description} - + {graphConfig.description && ( +
+
+
+ + {graphConfig.description} + +
-
+ )}