UNPKG

rp-data-chart

Version:

Rabbitpre data-chart components lib

38 lines (37 loc) 1.12 kB
import { Component } from 'react'; import { ChartProps } from "../../index"; import "../../assets/font/iconfont.less"; import './device-brand-chart.less'; interface IState { } export declare class DeviceBrandChart extends Component<ChartProps, IState> { state: { data: null; total: {}; active: string; }; componentDidMount(): void; /** * 初始化图表,可以获取数据 * * @memberof DeviceBrandChart */ init(): Promise<void>; generateData(result: Record<string, any>): Record<string, any[]>; sortByCount(data: Array<any>): void; formatPropoty(data: Record<string, any>): any; handleActive(type: string): 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;