From b1ff5a5f7fc132ed10a58b7d6456e1950c1d0ffd Mon Sep 17 00:00:00 2001 From: Alex-NRCan Date: Thu, 28 Sep 2023 18:04:38 -0400 Subject: [PATCH] And... --- src/chart/chart-types.ts | 4 ++++ src/chart/chart.tsx | 8 +------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/chart/chart-types.ts b/src/chart/chart-types.ts index 842dd78..597ca74 100644 --- a/src/chart/chart-types.ts +++ b/src/chart/chart-types.ts @@ -3,6 +3,10 @@ import { ChartType, ChartData, ChartOptions, DefaultDataPoint } from 'chart.js'; export const EVENT_CHART_CHANGED: string = "chart/changed"; export const EVENT_CHART_PARSE: string = "chart/parse"; +export type Toto = { + yo: string; +}; + export type OptionsParameters = { chart: ChartType; featuresUsePalette?: boolean; diff --git a/src/chart/chart.tsx b/src/chart/chart.tsx index 0e70667..fd25956 100644 --- a/src/chart/chart.tsx +++ b/src/chart/chart.tsx @@ -1,7 +1,7 @@ // import { useEffect, useState } from 'react'; import { Box } from '@mui/material'; import { ChartType, ChartData, ChartOptions, DefaultDataPoint, Plugin } from 'chart.js'; -import { ChartPayloadChanged, ChartPayloadParse, OptionsGeoChart, EVENT_CHART_CHANGED, EVENT_CHART_PARSE } from './chart-types'; +import { ChartPayloadChanged, ChartPayloadParse, OptionsGeoChart, EVENT_CHART_CHANGED, EVENT_CHART_PARSE, Toto } from './chart-types'; import { formatGenericData, formatGenericOptions } from './chart-parser'; import { ChartDoughnut } from './charts/chart-doughnut'; import { ChartBarsVertical } from './charts/chart-bars-vertical'; @@ -9,12 +9,6 @@ import { ChartPie } from './charts/chart-pie'; import { ChartLine } from './charts/chart-line'; import styles from './chart.module.css'; -export type Toto = { - yo: string; -}; - -export * from './chart-types'; - console.log("geochart chart.tsx run"); /**