1 | import React from 'react';
|
2 | export interface SunburstData {
|
3 | [key: string]: any;
|
4 | name: string;
|
5 | value?: number;
|
6 | fill?: string;
|
7 | children?: SunburstData[];
|
8 | }
|
9 | interface TextOptions {
|
10 | fontFamily?: string;
|
11 | fontWeight?: string;
|
12 | paintOrder?: string;
|
13 | stroke?: string;
|
14 | fill?: string;
|
15 | fontSize?: string;
|
16 | pointerEvents?: string;
|
17 | }
|
18 | export interface SunburstChartProps {
|
19 | className?: string;
|
20 | data?: SunburstData;
|
21 | width?: number;
|
22 | height?: number;
|
23 | padding?: number;
|
24 | dataKey?: string;
|
25 | ringPadding?: number;
|
26 | innerRadius?: number;
|
27 | outerRadius?: number;
|
28 | cx?: number;
|
29 | cy?: number;
|
30 | startAngle?: number;
|
31 | endAngle?: number;
|
32 | children?: React.ReactNode;
|
33 | fill?: string;
|
34 | stroke?: string;
|
35 | textOptions?: TextOptions;
|
36 | onMouseEnter?: (node: SunburstData, e: React.MouseEvent) => void;
|
37 | onMouseLeave?: (node: SunburstData, e: React.MouseEvent) => void;
|
38 | onClick?: (node: SunburstData) => void;
|
39 | }
|
40 | export declare const SunburstChart: ({ className, data, children, width, height, padding, dataKey, ringPadding, innerRadius, fill, stroke, textOptions, outerRadius, cx, cy, startAngle, endAngle, onClick, onMouseEnter, onMouseLeave, }: SunburstChartProps) => React.JSX.Element;
|
41 | export {};
|