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 | /** The abscissa of pole in polar coordinate */
|
29 | cx?: number;
|
30 | /** The ordinate of pole in polar coordinate */
|
31 | cy?: number;
|
32 | /** Angle in degrees from which the chart should start. */
|
33 | startAngle?: number;
|
34 | /** Angle, in degrees, at which the chart should end. Can be used to generate partial sunbursts. */
|
35 | endAngle?: number;
|
36 | children?: React.ReactNode;
|
37 | fill?: string;
|
38 | stroke?: string;
|
39 | textOptions?: TextOptions;
|
40 | onMouseEnter?: (node: SunburstData, e: React.MouseEvent) => void;
|
41 | onMouseLeave?: (node: SunburstData, e: React.MouseEvent) => void;
|
42 | onClick?: (node: SunburstData) => void;
|
43 | }
|
44 | 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;
|
45 | export {};
|