UNPKG

fybdp-d3-kg

Version:

Knowledge Graph using React and D3.js

36 lines (35 loc) 1.1 kB
import { Component, ReactElement } from 'react'; import { ChartProps, ChartContainerChildProps } from '../common/containers'; import { ChartShallowDataShape } from '../common/data'; import { RadialGaugeSeriesProps, RadialGaugeSeries } from './RadialGaugeSeries'; export interface RadialGaugeProps extends ChartProps { /** * Data the chart will receive to render. */ data: ChartShallowDataShape[]; /** * Min value to scale on. */ minValue: number; /** * Max value to scale on. */ maxValue: number; /** * Start angle for the first value. */ startAngle: number; /** * End angle for the last value. */ endAngle: number; /** * Gauge series component to render. */ series: ReactElement<RadialGaugeSeriesProps, typeof RadialGaugeSeries>; } export declare class RadialGauge extends Component<RadialGaugeProps> { static defaultProps: Partial<RadialGaugeProps>; renderChart(containerProps: ChartContainerChildProps): JSX.Element; render(): JSX.Element; }