UNPKG

echarts-for-react-fc

Version:

Using ECharts in React, encapsulating it within a functional component, and providing a hook for consumers to consume.

8 lines (7 loc) 362 B
import { ChartRef, EChartsOption, SetOptionOpts } from '../types'; declare const useChart: () => { chartRef: import('react').MutableRefObject<ChartRef | null>; setChartOption: (option: EChartsOption, notMerge?: boolean | SetOptionOpts, lazyUpdate?: boolean) => void; handleListenChartReady: (chartReady: boolean) => void; }; export default useChart;