primereact
Version:
PrimeReact is an open source UI library for React featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime
24 lines (21 loc) • 577 B
TypeScript
import * as React from 'react';
export interface ChartProps {
id?: string;
type?: string;
data?: object;
options?: object;
plugins?: any[];
width?: string;
height?: string;
style?: React.CSSProperties;
className?: string;
children?: React.ReactNode;
}
export declare class Chart extends React.Component<ChartProps, any> {
public getCanvas(): HTMLCanvasElement;
public getChart(): any;
public getBase64Image(): any;
public generateLegend(): string;
public refresh(): void;
public getElement(): HTMLDivElement;
}