UNPKG

fybdp-d3-kg

Version:

Knowledge Graph using React and D3.js

34 lines (33 loc) 1.6 kB
import { Component, ReactElement } from 'react'; import { ChartShallowDataShape, ChartInternalShallowDataShape } from '../common/data'; import { ChartProps, ChartContainerChildProps } from '../common/containers'; import { RadialAreaSeries, RadialAreaSeriesProps } from './RadialAreaSeries'; import { RadialAxis, RadialAxisProps } from '../common/Axis/RadialAxis'; export interface RadialAreaChartProps extends ChartProps { /** * Data the chart will receive to render. */ data: ChartShallowDataShape[]; /** * The series component that renders the area components. */ series: ReactElement<RadialAreaSeriesProps, typeof RadialAreaSeries>; /** * The radial axis component for the chart. */ innerRadius: number; /** * The inner radius for the chart center. */ axis: ReactElement<RadialAxisProps, typeof RadialAxis> | null; } export declare class RadialAreaChart extends Component<RadialAreaChartProps> { static defaultProps: Partial<RadialAreaChartProps>; getScales: (preData: ChartShallowDataShape<string | number | Date | import("big-integer").BigInteger | [import("../common/data").ChartDataTypes, import("../common/data").ChartDataTypes]>[], outerRadius: number, innerRadius: number) => { yScale: ((d: any) => number) & import("d3-scale").ScaleLinear<number, number>; xScale: import("d3-scale").ScaleTime<number, number>; data: ChartInternalShallowDataShape[]; }; renderChart(containerProps: ChartContainerChildProps): JSX.Element; render(): JSX.Element; }