realchart-vue
Version:
Wooritech realchart vue component library
19 lines (18 loc) • 730 B
TypeScript
import { Ref } from 'vue';
import { ChartConfiguration, Chart } from 'realchart';
import { RealChartProps } from '../components/RealChart.vue';
import * as RealChart from 'realchart';
export interface UseRealChartProps extends Pick<RealChartProps, 'config' | 'onChartLoaded' | 'animate'> {
realchartModule: typeof RealChart;
/**
* 차트 생성할 때 사용할 DOM 엘리먼트에 대한 참조객체입니다.
*/
elRef: Ref<HTMLDivElement | null>;
/**
* 차트를 그리기 위한 설정입니다.
*/
config: ChartConfiguration;
}
export declare function useRealChart({ realchartModule, elRef, config, animate, onChartLoaded, }: UseRealChartProps): {
realChart: Ref<Chart | null>;
};