From b94274a56c1920d915a595b6d8a3468854045d44 Mon Sep 17 00:00:00 2001 From: miyabin66 Date: Fri, 3 Nov 2023 14:18:46 +0900 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E3=81=99=E3=81=AE=E3=81=A7=E3=81=AF?= =?UTF-8?q?=E3=81=AA=E3=81=8FHighchartsAccessibility=E3=82=92=E8=AA=AD?= =?UTF-8?q?=E3=81=BF=E8=BE=BC=E3=82=80=E3=82=88=E3=81=86=E3=81=AB=E3=81=99?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Graph.tsx | 2 ++ src/hooks/useHighcharts.ts | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/Graph.tsx b/src/components/Graph.tsx index c19a7d0..1d80b50 100644 --- a/src/components/Graph.tsx +++ b/src/components/Graph.tsx @@ -3,6 +3,7 @@ import { usePopulation } from '@/hooks/api/usePopulation'; import { useHighcharts } from '@/hooks/useHighcharts'; import Highcharts from 'highcharts'; import HighchartsExporting from 'highcharts/modules/exporting'; +import HighchartsAccessibility from 'highcharts/modules/accessibility'; import HighchartsReact from 'highcharts-react-official'; import { type Dispatch, type SetStateAction, useEffect } from 'react'; import type { @@ -13,6 +14,7 @@ import type { PopulationGraphData } from '@/interfaces/population'; if (typeof Highcharts === 'object') { HighchartsExporting(Highcharts); + HighchartsAccessibility(Highcharts); } interface Props { diff --git a/src/hooks/useHighcharts.ts b/src/hooks/useHighcharts.ts index 4d72245..8226692 100644 --- a/src/hooks/useHighcharts.ts +++ b/src/hooks/useHighcharts.ts @@ -14,9 +14,6 @@ export const useHighcharts = ({ displayCondition, graphData }: Props) => { text: `${displayCondition}グラフ`, }, series: [], - accessibility: { - enabled: false, - }, }; }, [displayCondition]);