mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 14:06:36 +08:00
[修复] 修复地图显示
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
'use client';
|
||||
|
||||
import ReactEChartsCore from 'echarts-for-react/lib/core';
|
||||
import * as echarts from 'echarts/core';
|
||||
import {
|
||||
BarChart,
|
||||
LineChart,
|
||||
type BarSeriesOption,
|
||||
type LineSeriesOption,
|
||||
} from 'echarts/charts';
|
||||
import {
|
||||
GridComponent,
|
||||
LegendComponent,
|
||||
TooltipComponent,
|
||||
type GridComponentOption,
|
||||
type LegendComponentOption,
|
||||
type TooltipComponentOption,
|
||||
} from 'echarts/components';
|
||||
import { CanvasRenderer } from 'echarts/renderers';
|
||||
|
||||
echarts.use([
|
||||
GridComponent,
|
||||
LegendComponent,
|
||||
TooltipComponent,
|
||||
LineChart,
|
||||
BarChart,
|
||||
CanvasRenderer,
|
||||
]);
|
||||
|
||||
export type AppChartOption = echarts.ComposeOption<
|
||||
| GridComponentOption
|
||||
| LegendComponentOption
|
||||
| TooltipComponentOption
|
||||
| LineSeriesOption
|
||||
| BarSeriesOption
|
||||
>;
|
||||
|
||||
export { ReactEChartsCore, echarts };
|
||||
Reference in New Issue
Block a user