UNPKG

@mui/x-charts

Version:

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

46 lines (45 loc) 2.1 kB
import * as React from 'react'; import { ScatterPlotSlotComponentProps, ScatterPlotSlotsComponent } from './ScatterPlot'; import { ResponsiveChartContainerProps } from '../ResponsiveChartContainer'; import { ChartsAxisProps } from '../ChartsAxis'; import { ScatterSeriesType } from '../models/seriesType/scatter'; import { MakeOptional } from '../models/helpers'; import { ChartsTooltipProps, ChartsTooltipSlotComponentProps, ChartsTooltipSlotsComponent } from '../ChartsTooltip'; import { ChartsLegendProps, ChartsLegendSlotComponentProps, ChartsLegendSlotsComponent } from '../ChartsLegend'; import { ChartsAxisHighlightProps } from '../ChartsAxisHighlight'; import { ChartsAxisSlotsComponent, ChartsAxisSlotComponentProps } from '../models/axis'; export interface ScatterChartSlotsComponent extends ChartsAxisSlotsComponent, ScatterPlotSlotsComponent, ChartsLegendSlotsComponent, ChartsTooltipSlotsComponent { } export interface ScatterChartSlotComponentProps extends ChartsAxisSlotComponentProps, ScatterPlotSlotComponentProps, ChartsLegendSlotComponentProps, ChartsTooltipSlotComponentProps { } export interface ScatterChartProps extends Omit<ResponsiveChartContainerProps, 'series'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'> { series: MakeOptional<ScatterSeriesType, 'type'>[]; tooltip?: ChartsTooltipProps; axisHighlight?: ChartsAxisHighlightProps; /** * @deprecated Consider using `slotProps.legend` instead. */ legend?: ChartsLegendProps; /** * Overridable component slots. * @default {} */ slots?: ScatterChartSlotsComponent; /** * The props used for each component slot. * @default {} */ slotProps?: ScatterChartSlotComponentProps; } /** * 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 };