reaviz
Version:
Data Visualization using React
30 lines (29 loc) • 931 B
TypeScript
import { FC, ReactElement } from 'react';
import { ChartProps } from '../common/containers';
import { ChartShallowDataShape } from '../common/data';
import { LinearGaugeSeries, LinearGaugeSeriesProps } from './LinearGaugeSeries';
export interface LinearGaugeProps extends ChartProps {
/**
* Data the chart will receive to render.
*/
data: ChartShallowDataShape | ChartShallowDataShape[];
/**
* The series component that renders the bar components.
*
* @default `<LinearGaugeSeries />`
*/
series: ReactElement<LinearGaugeSeriesProps, typeof LinearGaugeSeries>;
/**
* Min value to scale on. Only applicable for single-series.
*
* @default 0
*/
minValue: number;
/**
* Max value to scale on. Only applicable for single-series.
*
* @default 100
*/
maxValue: number;
}
export declare const LinearGauge: FC<Partial<LinearGaugeProps>>;