UNPKG

@mui/x-charts

Version:

The community edition of the charts components (MUI X).

47 lines (46 loc) 2.15 kB
import * as React from 'react'; import { ResponsiveChartContainerProps } from '../ResponsiveChartContainer'; import { ChartsAxisProps } from '../ChartsAxis/ChartsAxis'; import { PieSeriesType } from '../models/seriesType'; import { MakeOptional } from '../models/helpers'; import { ChartsTooltipProps, ChartsTooltipSlotComponentProps, ChartsTooltipSlotsComponent } from '../ChartsTooltip'; import { ChartsLegendProps, ChartsLegendSlotComponentProps, ChartsLegendSlotsComponent } from '../ChartsLegend'; import { ChartsAxisHighlightProps } from '../ChartsAxisHighlight'; import { PiePlotProps, PiePlotSlotComponentProps, PiePlotSlotsComponent } from './PiePlot'; import { PieValueType } from '../models/seriesType/pie'; import { ChartsAxisSlotsComponent, ChartsAxisSlotComponentProps } from '../models/axis'; export interface PieChartSlotsComponent extends ChartsAxisSlotsComponent, PiePlotSlotsComponent, ChartsLegendSlotsComponent, ChartsTooltipSlotsComponent { } export interface PieChartSlotComponentProps extends ChartsAxisSlotComponentProps, PiePlotSlotComponentProps, ChartsLegendSlotComponentProps, ChartsTooltipSlotComponentProps { } export interface PieChartProps extends Omit<ResponsiveChartContainerProps, 'series'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Pick<PiePlotProps, 'skipAnimation'> { series: MakeOptional<PieSeriesType<MakeOptional<PieValueType, 'id'>>, 'type'>[]; tooltip?: ChartsTooltipProps; axisHighlight?: ChartsAxisHighlightProps; /** * @deprecated Consider using `slotProps.legend` instead. */ legend?: ChartsLegendProps; onClick?: PiePlotProps['onClick']; slots?: PieChartSlotsComponent; /** * The props used for each component slot. * @default {} */ slotProps?: PieChartSlotComponentProps; } /** * Demos: * * - [Pie](https://mui.com/x/react-charts/pie/) * - [Pie demonstration](https://mui.com/x/react-charts/pie-demo/) * * API: * * - [PieChart API](https://mui.com/x/api/charts/pie-chart/) */ declare function PieChart(props: PieChartProps): React.JSX.Element; declare namespace PieChart { var propTypes: any; } export { PieChart };