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 a6da92e4..321b2f21 100644
--- a/client/src/pages/european-projects/components/chart-wrapper/index.tsx
+++ b/client/src/pages/european-projects/components/chart-wrapper/index.tsx
@@ -189,17 +189,7 @@ function MenuModal({
);
}
-export default function ChartWrapper({
- id,
- options,
- legend,
- renderData,
-}: {
- id: string;
- options: Highcharts.Options;
- legend: React.ReactNode;
- renderData?: (options: Highcharts.Options) => React.ReactNode;
-}) {
+export default function ChartWrapper({ id, options, legend, renderData }) {
const [isOpen, setIsOpen] = useState(false);
const [isOpenIntegration, setIsOpenIntegration] = useState(false);
const [displayType, setDisplayType] = useState("chart"); // ["chart", "data"]
diff --git a/client/src/pages/european-projects/components/pages/general/overview/charts/funded-objectives/index.tsx b/client/src/pages/european-projects/components/pages/general/overview/charts/funded-objectives/index.tsx
index 35bc2ec4..c4a9a3ea 100644
--- a/client/src/pages/european-projects/components/pages/general/overview/charts/funded-objectives/index.tsx
+++ b/client/src/pages/european-projects/components/pages/general/overview/charts/funded-objectives/index.tsx
@@ -70,6 +70,7 @@ export default function FundedObjectives() {
))}
}
+ renderData={() => null} // TODO: add data table
/>
);
}
diff --git a/client/src/pages/european-projects/components/pages/general/overview/charts/funded-objectives/options.tsx b/client/src/pages/european-projects/components/pages/general/overview/charts/funded-objectives/options.tsx
index de194bb8..bb695d75 100644
--- a/client/src/pages/european-projects/components/pages/general/overview/charts/funded-objectives/options.tsx
+++ b/client/src/pages/european-projects/components/pages/general/overview/charts/funded-objectives/options.tsx
@@ -1,8 +1,6 @@
import { getColorByPillierName } from "./utils";
export default function Options(data) {
- if (!data) return null;
-
return {
chart: {
type: "bar",
diff --git a/client/src/pages/european-projects/components/pages/general/overview/charts/main-beneficiaries/index.tsx b/client/src/pages/european-projects/components/pages/general/overview/charts/main-beneficiaries/index.tsx
index ebfb9cfd..ad7b0ac2 100644
--- a/client/src/pages/european-projects/components/pages/general/overview/charts/main-beneficiaries/index.tsx
+++ b/client/src/pages/european-projects/components/pages/general/overview/charts/main-beneficiaries/index.tsx
@@ -24,6 +24,7 @@ export default function MainBeneficiaries() {
id="mainBeneficiaries"
options={options(data)}
legend={null}
+ renderData={() => null} // TODO: add data table
/>
);
}
diff --git a/client/src/pages/european-projects/components/pages/general/positioning/charts/funding-ranking/index.tsx b/client/src/pages/european-projects/components/pages/general/positioning/charts/funding-ranking/index.tsx
index b9f8b142..15233b8b 100644
--- a/client/src/pages/european-projects/components/pages/general/positioning/charts/funding-ranking/index.tsx
+++ b/client/src/pages/european-projects/components/pages/general/positioning/charts/funding-ranking/index.tsx
@@ -64,6 +64,7 @@ export default function FundingRanking({ indicateurId }) {
"FundingRanking"
)}
options={optionsChart(prepareData(data, sortIndicateur))}
+ renderData={() => null} // TODO: add data table
/>
@@ -77,6 +78,7 @@ export default function FundingRanking({ indicateurId }) {
"FundingRankingRates"
)}
options={optionChartSuccess(prepareData(data, sortIndicateur))}
+ renderData={() => null} // TODO: add data table
/>
diff --git a/client/src/pages/european-projects/components/pages/general/positioning/charts/top-10-beneficiaries/index.tsx b/client/src/pages/european-projects/components/pages/general/positioning/charts/top-10-beneficiaries/index.tsx
index 55696e2c..c6b27559 100644
--- a/client/src/pages/european-projects/components/pages/general/positioning/charts/top-10-beneficiaries/index.tsx
+++ b/client/src/pages/european-projects/components/pages/general/positioning/charts/top-10-beneficiaries/index.tsx
@@ -30,6 +30,7 @@ export default function Top10Beneficiaries() {
"Top10Beneficiaries"
)}
options={options(data, searchParams.get("country_code") ?? null)}
+ renderData={() => null} // TODO: add data table
/>
);
}
diff --git a/client/src/pages/european-projects/components/pages/general/projects-types/charts/pillars-subsidies-requested-lines/index.tsx b/client/src/pages/european-projects/components/pages/general/projects-types/charts/pillars-subsidies-requested-lines/index.tsx
index 2134a4a8..1ba2d283 100644
--- a/client/src/pages/european-projects/components/pages/general/projects-types/charts/pillars-subsidies-requested-lines/index.tsx
+++ b/client/src/pages/european-projects/components/pages/general/projects-types/charts/pillars-subsidies-requested-lines/index.tsx
@@ -50,13 +50,19 @@ export default function ProjectsTypesPillarsSubsidiesRequested({
-
+ null} // TODO: add data table
+ />
null} // TODO: add data table
/>
diff --git a/client/src/pages/european-projects/components/pages/general/projects-types/charts/success-rate-and-evolution-by-pillar/index.tsx b/client/src/pages/european-projects/components/pages/general/projects-types/charts/success-rate-and-evolution-by-pillar/index.tsx
index 55d15e73..93fa8ee3 100644
--- a/client/src/pages/european-projects/components/pages/general/projects-types/charts/success-rate-and-evolution-by-pillar/index.tsx
+++ b/client/src/pages/european-projects/components/pages/general/projects-types/charts/success-rate-and-evolution-by-pillar/index.tsx
@@ -89,6 +89,7 @@ export default function SuccessRateAndEvolutionByPillar({ indicateurId }) {
}
+ renderData={() => null} // TODO: add data table
/>
diff --git a/client/src/pages/european-projects/components/pages/general/projects-types/charts/success-rate-for-amounts-by-type-of-financing/index.tsx b/client/src/pages/european-projects/components/pages/general/projects-types/charts/success-rate-for-amounts-by-type-of-financing/index.tsx
index 84ee4af7..725f881f 100644
--- a/client/src/pages/european-projects/components/pages/general/projects-types/charts/success-rate-for-amounts-by-type-of-financing/index.tsx
+++ b/client/src/pages/european-projects/components/pages/general/projects-types/charts/success-rate-for-amounts-by-type-of-financing/index.tsx
@@ -65,6 +65,7 @@ export default function SuccessRateForAmountsByTypeOfFinancing() {
}
+ renderData={() => null} // TODO: add data table
/>
diff --git a/client/src/pages/european-projects/components/pages/general/projects-types/charts/type-of-financing-subsidies-requested-by-projects/index.tsx b/client/src/pages/european-projects/components/pages/general/projects-types/charts/type-of-financing-subsidies-requested-by-projects/index.tsx
index 936a5b72..9fb74a23 100644
--- a/client/src/pages/european-projects/components/pages/general/projects-types/charts/type-of-financing-subsidies-requested-by-projects/index.tsx
+++ b/client/src/pages/european-projects/components/pages/general/projects-types/charts/type-of-financing-subsidies-requested-by-projects/index.tsx
@@ -66,6 +66,7 @@ export default function TypeOfFinancingSubsidiesRequestedByProjects() {
}
+ renderData={() => null} // TODO: add data table
/>
@@ -73,6 +74,7 @@ export default function TypeOfFinancingSubsidiesRequestedByProjects() {
id="typeOfFinancingSubsidiesRequestedByProjectsRates"
options={optionsSubventionsRates(data)}
legend={null}
+ renderData={() => null} // TODO: add data table
/>
diff --git a/client/src/pages/european-projects/components/pages/general/projects-types/charts/type-of-financing-subsidies-requested-lines/index.tsx b/client/src/pages/european-projects/components/pages/general/projects-types/charts/type-of-financing-subsidies-requested-lines/index.tsx
index df392234..de3373dc 100644
--- a/client/src/pages/european-projects/components/pages/general/projects-types/charts/type-of-financing-subsidies-requested-lines/index.tsx
+++ b/client/src/pages/european-projects/components/pages/general/projects-types/charts/type-of-financing-subsidies-requested-lines/index.tsx
@@ -29,6 +29,7 @@ export default function TypeOfFinancingSubsidiesRequestedLines() {
id="typeOfFinancingSubsidiesRequested"
options={optionsValues(data)}
legend={null}
+ renderData={() => null} // TODO: add data table
/>
@@ -36,6 +37,7 @@ export default function TypeOfFinancingSubsidiesRequestedLines() {
id="typeOfFinancingSubsidiesRequestedRates"
options={optionsRates(data)}
legend={null}
+ renderData={() => null} // TODO: add data table
/>