UNPKG

@mui/x-charts

Version:

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

52 lines (51 loc) 2.19 kB
import * as React from 'react'; import { ScatterPlotSlotProps, ScatterPlotSlots } from './ScatterPlot'; import { ResponsiveChartContainerProps } from '../ResponsiveChartContainer'; import { ChartsAxisProps } from '../ChartsAxis'; import { ScatterSeriesType } from '../models/seriesType/scatter'; import { MakeOptional } from '../models/helpers'; import { ChartsTooltipProps, ChartsTooltipSlotProps, ChartsTooltipSlots } from '../ChartsTooltip'; import { ChartsLegendProps, ChartsLegendSlotProps, ChartsLegendSlots } from '../ChartsLegend'; import { ChartsAxisHighlightProps } from '../ChartsAxisHighlight'; import { ChartsAxisSlots, ChartsAxisSlotProps } from '../models/axis'; import { ChartsVoronoiHandlerProps } from '../ChartsVoronoiHandler/ChartsVoronoiHandler'; export interface ScatterChartSlots extends ChartsAxisSlots, ScatterPlotSlots, ChartsLegendSlots, ChartsTooltipSlots { } export interface ScatterChartSlotProps extends ChartsAxisSlotProps, ScatterPlotSlotProps, ChartsLegendSlotProps, ChartsTooltipSlotProps { } export interface ScatterChartProps extends Omit<ResponsiveChartContainerProps, 'series'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, ChartsVoronoiHandlerProps { series: MakeOptional<ScatterSeriesType, 'type'>[]; tooltip?: ChartsTooltipProps; axisHighlight?: ChartsAxisHighlightProps; /** * If true, the interaction will not use the Voronoi cell and fall back to hover events. * @default false */ disableVoronoi?: boolean; /** * @deprecated Consider using `slotProps.legend` instead. */ legend?: ChartsLegendProps; /** * Overridable component slots. * @default {} */ slots?: ScatterChartSlots; /** * The props used for each component slot. * @default {} */ slotProps?: ScatterChartSlotProps; } /** * Demos: * * - [Scatter](https://mui.com/x/react-charts/scatter/) * - [Scatter demonstration](https://mui.com/x/react-charts/scatter-demo/) * * API: * * - [ScatterChart API](https://mui.com/x/api/charts/scatter-chart/) */ declare const ScatterChart: React.ForwardRefExoticComponent<ScatterChartProps & React.RefAttributes<unknown>>; export { ScatterChart };