@mui/x-charts
Version:
The community edition of MUI X Charts components.
40 lines • 1.89 kB
TypeScript
import * as React from 'react';
import { type ChartsAxisProps } from "../ChartsAxis/index.js";
import { type ChartsAxisHighlightProps } from "../ChartsAxisHighlight/index.js";
import { type ChartsClipPathProps } from "../ChartsClipPath/index.js";
import { type ChartsGridProps } from "../ChartsGrid/index.js";
import { type ChartsLegendSlotExtension } from "../ChartsLegend/index.js";
import { type ChartsOverlayProps } from "../ChartsOverlay/index.js";
import { type ChartContainerProps } from "../ChartContainer/index.js";
import { type AreaPlotProps } from "./AreaPlot.js";
import type { LineChartProps } from "./LineChart.js";
import { type LineHighlightPlotProps } from "./LineHighlightPlot.js";
import { type LinePlotProps } from "./LinePlot.js";
import { type MarkPlotProps } from "./MarkPlot.js";
import type { ChartsWrapperProps } from "../ChartsWrapper/index.js";
import { type LineChartPluginSignatures } from "./LineChart.plugins.js";
/**
* A helper function that extracts LineChartProps from the input props
* and returns an object with props for the children components of LineChart.
*
* @param props The input props for LineChart
* @returns An object with props for the children components of LineChart
*/
export declare const useLineChartProps: (props: LineChartProps) => {
chartsWrapperProps: Omit<ChartsWrapperProps, "children">;
chartContainerProps: ChartContainerProps<"line", LineChartPluginSignatures>;
gridProps: ChartsGridProps;
clipPathProps: ChartsClipPathProps;
clipPathGroupProps: {
clipPath: string;
};
areaPlotProps: AreaPlotProps;
linePlotProps: LinePlotProps;
markPlotProps: MarkPlotProps;
overlayProps: ChartsOverlayProps;
chartsAxisProps: ChartsAxisProps;
axisHighlightProps: ChartsAxisHighlightProps;
lineHighlightPlotProps: LineHighlightPlotProps;
legendProps: ChartsLegendSlotExtension;
children: React.ReactNode;
};