diff --git a/client/src/pages/atlas/charts/map-pie-sectors/index.jsx b/client/src/pages/atlas/charts/map-pie-sectors/index.jsx index fc85dd3a..4bbe032b 100644 --- a/client/src/pages/atlas/charts/map-pie-sectors/index.jsx +++ b/client/src/pages/atlas/charts/map-pie-sectors/index.jsx @@ -24,7 +24,6 @@ export default function MapPieSectors({ item.effectif_secteur_public > item.effectif_secteur_prive ? -1 : 1, item.nom, ]); - Highcharts.seriesType( "mappie", "pie", diff --git a/client/src/pages/atlas/components/main/tabs/genders.tsx b/client/src/pages/atlas/components/main/tabs/genders.tsx index fe7b5894..68bff8f1 100644 --- a/client/src/pages/atlas/components/main/tabs/genders.tsx +++ b/client/src/pages/atlas/components/main/tabs/genders.tsx @@ -12,7 +12,7 @@ import { } from "@dataesr/dsfr-plus"; import GenderChart from "../../../charts/genders-pie.tsx"; -import MapPieGender from "../../../charts/map-pie-sectors/index.jsx"; +import MapPieGender from "../../../charts/map-pie-genders/index.jsx"; import TrendCard from "../../../charts/trend.tsx"; import { getGeoPolygon, @@ -239,27 +239,31 @@ export function Genders() { /> - - - - <span - className="fr-icon-pie-chart-2-line fr-mr-1w" - aria-hidden="true" - /> - {`Répartition des étudiants par ${getSubLevelName()}`} - - - - - - - - + {polygonsData.length > 1 && ( + <> + + + + <span + className="fr-icon-pie-chart-2-line fr-mr-1w" + aria-hidden="true" + /> + {`Répartition des étudiants par ${getSubLevelName()}`} + + + + + + + + + + )} diff --git a/client/src/pages/atlas/components/main/tabs/sectors.tsx b/client/src/pages/atlas/components/main/tabs/sectors.tsx index 3692718c..f2f2320c 100644 --- a/client/src/pages/atlas/components/main/tabs/sectors.tsx +++ b/client/src/pages/atlas/components/main/tabs/sectors.tsx @@ -218,27 +218,31 @@ export function Sectors() { /> </Col> </Row> - <Row className="fr-my-5w"> - <Col> - <Title as="h3" look="h5"> - <span - className="fr-icon-pie-chart-2-line fr-mr-1w" - aria-hidden="true" - /> - {`Répartition des étudiants par ${getSubLevelName()}`} - - - - - - - - + {polygonsData.length > 1 && ( + <> + + + + <span + className="fr-icon-pie-chart-2-line fr-mr-1w" + aria-hidden="true" + /> + {`Répartition des étudiants par ${getSubLevelName()}`} + + + + + + + + + + )}