UNPKG

fybdp-d3-kg

Version:

Knowledge Graph using React and D3.js

29 lines (28 loc) 1.03 kB
/// <reference types="d3-shape" /> import { Component, ReactElement } from 'react'; import { ChartProps, ChartContainerChildProps } from '../common/containers/ChartContainer'; import { ChartDataShape } from '../common/data'; import { PieArcSeries, PieArcSeriesProps } from './PieArcSeries'; interface PieChartProps extends ChartProps { /** * Data the chart will receive to render. */ data: ChartDataShape[]; /** * Whether the chart is disabled. */ disabled?: boolean; /** * The series component that renders the arc components. */ series: ReactElement<PieArcSeriesProps, typeof PieArcSeries>; } export declare class PieChart extends Component<PieChartProps> { static defaultProps: PieChartProps; getData: (data: ChartDataShape[], explode: boolean) => import("d3-shape").PieArcDatum<number | { valueOf(): number; }>[]; renderChart(containerProps: ChartContainerChildProps): JSX.Element; render(): JSX.Element; } export {};