@mui/x-charts
Version:
The community edition of the Charts components (MUI X).
18 lines (17 loc) • 695 B
TypeScript
import * as React from 'react';
import { FormattedSeries } from '../context/SeriesProvider';
import { LegendPerItemProps } from './LegendPerItem';
import { DrawingArea } from '../context/DrawingProvider';
export interface LegendRendererProps extends Omit<LegendPerItemProps, 'itemsToDisplay'> {
series: FormattedSeries;
seriesToDisplay: LegendPerItemProps['itemsToDisplay'];
/**
* @deprecated Use the `useDrawingArea` hook instead.
*/
drawingArea: Omit<DrawingArea, 'isPointInside'>;
}
declare function DefaultChartsLegend(props: LegendRendererProps): React.JSX.Element;
declare namespace DefaultChartsLegend {
var propTypes: any;
}
export { DefaultChartsLegend };