UNPKG

fybdp-d3-kg

Version:

Knowledge Graph using React and D3.js

34 lines (33 loc) 1.63 kB
import { Component, ReactElement } from 'react'; import { ChartShallowDataShape, ChartInternalShallowDataShape } from '../common/data'; import { RadialScatterSeries, RadialScatterSeriesProps } from './RadialScatterSeries'; import { ChartProps, ChartContainerChildProps } from '../common/containers'; import { RadialAxisProps, RadialAxis } from '../common/Axis/RadialAxis'; export interface RadialScatterPlotProps extends ChartProps { /** * Data the chart will receive to render. */ data: ChartShallowDataShape[]; /** * The series component that renders the scatter components. */ series: ReactElement<RadialScatterSeriesProps, typeof RadialScatterSeries>; /** * The radial axis component for the chart. */ axis: ReactElement<RadialAxisProps, typeof RadialAxis> | null; /** * The inner radius for the chart center. */ innerRadius: number; } export declare class RadialScatterPlot extends Component<RadialScatterPlotProps> { static defaultProps: Partial<RadialScatterPlotProps>; 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; }