Skip to content

Commit 3808a72

Browse files
committed
feat: add some pie chart examples
1 parent bdc5368 commit 3808a72

File tree

3 files changed

+714
-3
lines changed

3 files changed

+714
-3
lines changed

stories/bar.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import type { GridOption, TitleOption, XAXisOption, YAXisOption } from 'echarts/
2525
import type { BarSeriesLabelOption } from 'echarts/types/src/chart/bar/BarSeries.js';
2626
import type { MatrixDimensionCellLooseOption } from 'echarts/types/src/coord/matrix/MatrixModel.js';
2727
import type { AxisBreakOption, ECActionEvent, OptionDataValue } from 'echarts/types/src/util/types.js';
28-
import React, { useState } from 'react';
28+
import * as React from 'react';
2929
import useSWR from 'swr';
3030

3131
const meta = {
@@ -2690,7 +2690,7 @@ export const MatrixMiniBarGeo: Story = {
26902690
name: 'Mini Bars and Geo in Matrix',
26912691
render() {
26922692
const { data: geoJSON } = useSWR('https://echarts.apache.org/examples/data/asset/geo/ch.geo.json');
2693-
const [isGeoLoaded, setIsGeoLoaded] = useState(false);
2693+
const [isGeoLoaded, setIsGeoLoaded] = React.useState(false);
26942694
React.useEffect(() => {
26952695
if (!geoJSON) return;
26962696
echarts.registerMap('target_map', geoJSON);

0 commit comments

Comments
 (0)