UNPKG

fybdp-d3-kg

Version:

Knowledge Graph using React and D3.js

64 lines (63 loc) 1.94 kB
import { Component, ReactElement } from 'react'; import { ChartInternalShallowDataShape } from '../../common/data'; import { RadialBar, RadialBarProps } from './RadialBar'; import { ColorSchemeType } from '../../common/color'; import { TooltipAreaProps, TooltipArea, TooltipAreaEvent } from '../../common/Tooltip'; export interface RadialBarSeriesProps { /** * Parsed data shape. Set internally by `RadialBarChart`. */ data: ChartInternalShallowDataShape[]; /** * Color scheme for the series. */ colorScheme: ColorSchemeType; /** * The inner radius for the chart center. */ innerRadius: number; /** * D3 scale for X Axis. Set internally by `RadialBarChart`. */ xScale: any; /** * D3 scale for Y Axis. Set internally by `RadialBarChart`. */ yScale: any; /** * Id set internally by `RadialBarChart`. */ id: string; /** * Bar that is rendered. */ bar: ReactElement<RadialBarProps, typeof RadialBar>; /** * Whether to animate the enter/update/exit. */ animated: boolean; /** * Height of the chart. Set internally by `RadialBarChart`. */ height: number; /** * Width of the chart. Set internally by `RadialBarChart`. */ width: number; /** * Tooltip for the chart area. */ tooltip: ReactElement<TooltipAreaProps, typeof TooltipArea>; } interface RadialBarSeriesState { activeValues?: any; } export declare class RadialBarSeries extends Component<RadialBarSeriesProps, RadialBarSeriesState> { static defaultProps: Partial<RadialBarSeriesProps>; state: RadialBarSeriesState; onValueEnter(event: TooltipAreaEvent): void; onValueLeave(): void; renderBar(point: ChartInternalShallowDataShape, index: number): JSX.Element; render(): JSX.Element; } export {};