Skip to content

Commit d7111b5

Browse files
committed
fix(structures-finance): fix highchart probs
1 parent d64458d commit d7111b5

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

  • client/src/boards
    • european-projects/pages/collaborations/charts/countries-collaborations-bubble
    • faculty-members/pages/structures/sections/groupes-cnu/charts/cnu-bubble
    • structures-finance/pages/national/sections/analyse/chart/column-range

client/src/boards/european-projects/pages/collaborations/charts/countries-collaborations-bubble/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import { Button, Col, Container, Row, Title } from "@dataesr/dsfr-plus";
55
import { useGetParams } from "./utils";
66
import { getData } from "./query";
77
import options from "./options";
8+
import Highcharts from "highcharts";
9+
import HighchartsMore from "highcharts/highcharts-more";
810
import ChartWrapper from "../../../../../../components/chart-wrapper";
911
import DefaultSkeleton from "../../../../../../components/charts-skeletons/default";
1012
import { useSearchParams } from "react-router-dom";
11-
12-
import "highcharts/highcharts-more";
13+
(HighchartsMore as any)(Highcharts);
1314

1415
import i18nGlobal from "../../../../i18n-global.json";
1516
import i18nLocal from "./i18n.json";

client/src/boards/faculty-members/pages/structures/sections/groupes-cnu/charts/cnu-bubble/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import { useMemo } from "react";
2-
import "highcharts/highcharts-more";
2+
import Highcharts from "highcharts";
3+
import HighchartsMore from "highcharts/highcharts-more";
34
import ChartWrapper from "../../../../../../../../components/chart-wrapper";
45
import { createCnuBubbleOptions } from "./options";
56

7+
(HighchartsMore as any)(Highcharts);
8+
69
interface CnuBubbleChartProps {
710
selectedYear: string;
811
cnuGroups: any[];

client/src/boards/structures-finance/pages/national/sections/analyse/chart/column-range/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useMemo, useState } from "react";
22
import Highcharts from "highcharts";
3+
import HighchartsMore from "highcharts/highcharts-more";
34
import "../../../../styles.scss";
4-
import "highcharts/highcharts-more";
55
import { Text, Row, Col } from "@dataesr/dsfr-plus";
66
import ChartWrapper from "../../../../../../../../components/chart-wrapper/index.tsx";
77
import Select from "../../../../../../components/select/index.tsx";
@@ -15,6 +15,9 @@ import {
1515
import { createColumnRangeOptions, type ColumnRangePoint } from "./options.tsx";
1616
import { RenderDataVariation } from "./render-data.tsx";
1717

18+
(HighchartsMore as any)(Highcharts);
19+
20+
1821
interface ColumnRangeChartProps {
1922
allYearsData: any[];
2023
metricKey: MetricKey;

0 commit comments

Comments
 (0)