UNPKG

@alicloud/cloud-charts

Version:

![](https://img.shields.io/npm/v/@alicloud/cloud-charts?color=%23ff8200)

53 lines (52 loc) 1.8 kB
/// <reference types="react" /> import { View as DataView } from '@antv/data-set/lib/view'; import { Chart, Types, BaseChartConfig, ChartData, Colors } from '../common/types'; import Base from '../common/Base'; import { TooltipConfig } from '../common/rectTooltip'; import { LegendConfig } from '../common/rectLegend'; import { GeomStyleConfig } from '../common/geomStyle'; import './index.scss'; export interface WsunburstConfig extends BaseChartConfig { colors?: Colors; legend?: LegendConfig | boolean; tooltip?: TooltipConfig | boolean; autoSort?: boolean; reverse?: boolean; cycle?: boolean; innerRadius?: number; outerRadius?: number; /** * 用于极坐标,配置起始弧度。 */ startAngle?: number; /** * 用于极坐标,配置结束弧度。 */ endAngle?: number; geomStyle?: GeomStyleConfig; /** 环形图中心的内容,仅当cycle=true时生效 */ innerContent?: boolean | { /** 标题,不指定则取数据中name */ title?: string | React.ReactNode; /** 数值,不指定则为数据总和 */ value?: number | React.ReactNode; /** 单位 */ unit?: string | React.ReactNode; }; showSpacing?: boolean; select?: boolean; } export declare class Sunburst extends Base<WsunburstConfig> { chartName: string; legendField: string; convertData: boolean; getDefaultConfig(): WsunburstConfig; totalData: number; dataView: DataView; data: Types.Data; init(chart: Chart, config: WsunburstConfig, data: ChartData): void; changeData(chart: Chart, config: WsunburstConfig, data: ChartData): void; } declare const WmultiPie: typeof Sunburst; declare const Wsunburst: typeof Sunburst; export { WmultiPie, Wsunburst };