fybdp-d3-kg
Version:
Knowledge Graph using React and D3.js
48 lines (47 loc) • 1.48 kB
TypeScript
import { Component, ReactElement } from 'react';
import { ChartInternalShallowDataShape } from '../../common/data';
import { RadialScatterPoint, RadialScatterPointProps } from './RadialScatterPoint';
export interface RadialScatterSeriesProps {
/**
* Point that is rendered.
*/
point: ReactElement<RadialScatterPointProps, typeof RadialScatterPoint>;
/**
* D3 scale for X Axis. Set internally by `RadialScatterPlot`.
*/
xScale: any;
/**
* D3 scale for Y Axis. Set internally by `RadialScatterPlot`.
*/
yScale: any;
/**
* Parsed data shape. Set internally by `RadialScatterPlot`.
*/
data: ChartInternalShallowDataShape[];
/**
* Id set internally by `RadialScatterPlot`.
*/
id: string;
/**
* Whether to animate the enter/update/exit.
*/
animated: boolean;
/**
* Active element ids to highlight.
*/
activeIds?: string[];
}
interface RadialScatterSeriesState {
activeIds: string[];
}
export declare class RadialScatterSeries extends Component<RadialScatterSeriesProps, RadialScatterSeriesState> {
static defaultProps: Partial<RadialScatterSeriesProps>;
state: RadialScatterSeriesState;
onMouseEnter({ value }: {
value: any;
}): void;
onMouseLeave(): void;
renderPoint(data: ChartInternalShallowDataShape, index: number): JSX.Element;
render(): JSX.Element;
}
export {};