UNPKG

@gpa-gemstone/react-graph

Version:
14 lines (13 loc) 504 B
import * as React from 'react'; import { LineStyle } from './GraphContext'; import { ILegendRequiredProps } from './LegendContext'; type LegendStyle = LineStyle | 'none' | 'square' | 'circle'; export interface IProps extends ILegendRequiredProps { color: string; legendSymbol: LegendStyle; setEnabled: (arg: boolean, e: React.MouseEvent<HTMLDivElement>) => void; hasNoData: boolean; label: string; } declare function DataLegend(props: IProps): JSX.Element; export default DataLegend;