UNPKG

rp-data-chart

Version:

Rabbitpre data-chart components lib

42 lines (41 loc) 1.12 kB
/** * 分享率图表类 * @author lifu * @since 2019-5-14 */ import { Component } from 'react'; import { ChartProps } from "../../index"; import './share-rate.less'; declare type DataType = { shareCounts: Record<string, any>[]; shareRates: Record<string, any>[]; }; interface IState { data: Record<string, any> | null; statistics: any[]; date: { end?: string; start?: string; days?: number; }; } export declare class DemoChart extends Component<ChartProps, IState> { state: IState; componentWillMount(): void; init(): Promise<void>; handleStatistics(data: DataType): void; onDateChange(date: any): Promise<void>; render(): JSX.Element; } declare const _default: { new (opt: import("../..").ChartOptions): { appId: string; pfId: string; container: HTMLElement | null; isLoading: boolean; init(): void; refresh(callback?: (() => void) | undefined): void; destroy(callback?: (() => void) | undefined): void; }; }; export default _default;