diff --git a/docs/next.config.ts b/docs/next.config.ts
index 7a5ccb7bd699a..3c950e03d2c17 100644
--- a/docs/next.config.ts
+++ b/docs/next.config.ts
@@ -5,6 +5,7 @@ import * as semver from 'semver';
import { createRequire } from 'module';
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
import { withDeploymentConfig } from '@mui/internal-docs-infra/withDocsInfra';
+import type { LoaderOptions as PrecomputedTypesLoaderOptions } from '@mui/internal-docs-infra/pipeline/loadPrecomputedTypes';
import { findPages } from './src/modules/utils/find';
import { LANGUAGES, LANGUAGES_SSR, LANGUAGES_IGNORE_PAGES, LANGUAGES_IN_PROGRESS } from './config';
import { SOURCE_CODE_REPO, SOURCE_GITHUB_BRANCH } from './constants';
@@ -78,6 +79,7 @@ export default withDeploymentConfig({
// TODO, those shouldn't be needed in the first place
'@mui/monorepo', // Migrate everything to @mui/internal-core-docs until the @mui/monorepo dependency becomes obsolete
'@mui/internal-core-docs', // needed to fix slashes in the generated links (https://github.com/mui/mui-x/pull/13713#issuecomment-2205591461, )
+ '@mui/internal-docs-infra', // TEMP: local link points at ../mui-public/packages/docs-infra source tree
],
// Avoid conflicts with the other Next.js apps hosted under https://mui.com/
assetPrefix: process.env.DEPLOY_ENV === 'development' ? undefined : '/x',
@@ -132,6 +134,11 @@ export default withDeploymentConfig({
),
docs: path.resolve(MONOREPO_PATH, './docs'),
docsx: path.resolve(currentDirectory, '../docs'),
+ // TEMP: force React dedupe so linked @mui/internal-docs-infra doesn't
+ // load its own React copy (breaks hooks with "Cannot read properties
+ // of null (reading 'useMemo')").
+ react: path.resolve(currentDirectory, 'node_modules/react'),
+ 'react-dom': path.resolve(currentDirectory, 'node_modules/react-dom'),
},
},
module: {
@@ -166,6 +173,20 @@ export default withDeploymentConfig({
include: [/(@mui[\\/]monorepo)$/, /(@mui[\\/]monorepo)[\\/](?!.*node_modules)/],
use: options.defaultLoaders.babel,
},
+ // New types pipeline (POC) — intercept `types.*.ts` next to API pages and
+ // precompute props metadata at build time via the docs-infra loader.
+ {
+ test: /[/\\]docs[/\\]pages[/\\]x[/\\]api[/\\].+[/\\]types\..*\.ts$/,
+ use: [
+ options.defaultLoaders.babel,
+ {
+ loader: '@mui/internal-docs-infra/pipeline/loadPrecomputedTypes',
+ options: {
+ socketDir: '.next/docs-infra',
+ } satisfies PrecomputedTypesLoaderOptions,
+ },
+ ],
+ },
{
test: /\.(ts|tsx)$/,
loader: 'string-replace-loader',
diff --git a/docs/package.json b/docs/package.json
index 6cb487b7c2e29..63ee0e1e56ec3 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -9,6 +9,7 @@
"dev": "cross-env-shell 'next dev --webpack --port ${PORT:-3001}'",
"deploy": "git fetch upstream master && git push -f upstream FETCH_HEAD:docs-v9",
"icons": "rimraf public/static/icons/* && node ./scripts/buildIcons.js",
+ "internal-validate": "docs-infra validate",
"serve": "serve ./export -l 3010",
"create-playground": "node ./scripts/createPlayground.js",
"typescript": "tsc -p tsconfig.json",
diff --git a/docs/pages/x/api/charts/animated-area.js b/docs/pages/x/api/charts/animated-area.js
index 630180fbcf0dd..c01b6cf24fb02 100644
--- a/docs/pages/x/api/charts/animated-area.js
+++ b/docs/pages/x/api/charts/animated-area.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './animated-area.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesAnimatedArea } from './types.animated-area';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['skipAnimation'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/animated-area',
- false,
- /\.\/animated-area.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/animated-line.js b/docs/pages/x/api/charts/animated-line.js
index bab3d4034566e..1b4eef3d57aa2 100644
--- a/docs/pages/x/api/charts/animated-line.js
+++ b/docs/pages/x/api/charts/animated-line.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './animated-line.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesAnimatedLine } from './types.animated-line';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['skipAnimation'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/animated-line',
- false,
- /\.\/animated-line.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/area-element.js b/docs/pages/x/api/charts/area-element.js
index 98c0a96736901..05ffc6314e35f 100644
--- a/docs/pages/x/api/charts/area-element.js
+++ b/docs/pages/x/api/charts/area-element.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './area-element.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesAreaElement } from './types.area-element';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['skipAnimation', 'slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/area-element',
- false,
- /\.\/area-element.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/area-plot.js b/docs/pages/x/api/charts/area-plot.js
index da51c70f88bd0..4b2d3f0ab6158 100644
--- a/docs/pages/x/api/charts/area-plot.js
+++ b/docs/pages/x/api/charts/area-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './area-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesAreaPlot } from './types.area-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['onItemClick', 'skipAnimation', 'slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/area-plot',
- false,
- /\.\/area-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/axis-config.js b/docs/pages/x/api/charts/axis-config.js
index e23b725c73e87..fe1b90232d10b 100644
--- a/docs/pages/x/api/charts/axis-config.js
+++ b/docs/pages/x/api/charts/axis-config.js
@@ -1,22 +1,12 @@
-import * as React from 'react';
-import InterfaceApiPage from 'docsx/src/modules/components/InterfaceApiPage';
-import layoutConfig from 'docsx/src/modules/utils/dataGridLayoutConfig';
-import mapApiPageTranslations from 'docsx/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './axis-config.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesAxisConfig } from './types.axis-config';
-export default function Page(props) {
- const { descriptions } = props;
- return (
-
- );
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/',
- false,
- /\.\/axis-config.*.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/bar-chart-premium.js b/docs/pages/x/api/charts/bar-chart-premium.js
index e2a82bfa5b1c1..2fe11fd890338 100644
--- a/docs/pages/x/api/charts/bar-chart-premium.js
+++ b/docs/pages/x/api/charts/bar-chart-premium.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './bar-chart-premium.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesBarChartPremium } from './types.bar-chart-premium';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axesGap', 'axisHighlight', 'borderRadius', 'brushConfig', 'colors', 'dataset', 'desc', 'disableAxisListener', 'disableKeyboardNavigation', 'experimentalFeatures', 'grid', 'height', 'hiddenItems', 'hideLegend', 'highlightedAxis', 'highlightedItem', 'id', 'initialHiddenItems', 'initialZoom', 'layout', 'loading', 'localeText', 'margin', 'onAxisClick', 'onHiddenItemsChange', 'onHighlightChange', 'onHighlightedAxisChange', 'onItemClick', 'onTooltipAxisChange', 'onTooltipItemChange', 'onZoomChange', 'renderer', 'series', 'showToolbar', 'skipAnimation', 'slotProps', 'slots', 'title', 'tooltipAxis', 'tooltipItem', 'width', 'xAxis', 'yAxis', 'zAxis', 'zoomData', 'zoomInteractionConfig'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/bar-chart-premium',
- false,
- /\.\/bar-chart-premium.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/bar-chart-pro.js b/docs/pages/x/api/charts/bar-chart-pro.js
index 233b46a4e6a98..e6fc8ecfa3cdb 100644
--- a/docs/pages/x/api/charts/bar-chart-pro.js
+++ b/docs/pages/x/api/charts/bar-chart-pro.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './bar-chart-pro.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesBarChartPro } from './types.bar-chart-pro';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axesGap', 'axisHighlight', 'borderRadius', 'brushConfig', 'colors', 'dataset', 'desc', 'disableAxisListener', 'disableKeyboardNavigation', 'experimentalFeatures', 'grid', 'height', 'hiddenItems', 'hideLegend', 'highlightedAxis', 'highlightedItem', 'id', 'initialHiddenItems', 'initialZoom', 'layout', 'loading', 'localeText', 'margin', 'onAxisClick', 'onHiddenItemsChange', 'onHighlightChange', 'onHighlightedAxisChange', 'onItemClick', 'onTooltipAxisChange', 'onTooltipItemChange', 'onZoomChange', 'renderer', 'series', 'showToolbar', 'skipAnimation', 'slotProps', 'slots', 'title', 'tooltipAxis', 'tooltipItem', 'width', 'xAxis', 'yAxis', 'zAxis', 'zoomData', 'zoomInteractionConfig'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/bar-chart-pro',
- false,
- /\.\/bar-chart-pro.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/bar-chart.js b/docs/pages/x/api/charts/bar-chart.js
index 96b2679b10cc5..0e25ee1588174 100644
--- a/docs/pages/x/api/charts/bar-chart.js
+++ b/docs/pages/x/api/charts/bar-chart.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './bar-chart.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesBarChart } from './types.bar-chart';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axesGap', 'axisHighlight', 'borderRadius', 'brushConfig', 'colors', 'dataset', 'desc', 'disableAxisListener', 'disableKeyboardNavigation', 'experimentalFeatures', 'grid', 'height', 'hiddenItems', 'hideLegend', 'highlightedAxis', 'highlightedItem', 'id', 'initialHiddenItems', 'layout', 'loading', 'localeText', 'margin', 'onAxisClick', 'onHiddenItemsChange', 'onHighlightChange', 'onHighlightedAxisChange', 'onItemClick', 'onTooltipAxisChange', 'onTooltipItemChange', 'renderer', 'series', 'showToolbar', 'skipAnimation', 'slotProps', 'slots', 'title', 'tooltipAxis', 'tooltipItem', 'width', 'xAxis', 'yAxis'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/bar-chart',
- false,
- /\.\/bar-chart.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/bar-element.js b/docs/pages/x/api/charts/bar-element.js
index 8850e8d79d961..9e1f116dae2c4 100644
--- a/docs/pages/x/api/charts/bar-element.js
+++ b/docs/pages/x/api/charts/bar-element.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './bar-element.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesBarElement } from './types.bar-element';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/bar-element',
- false,
- /\.\/bar-element.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/bar-label.js b/docs/pages/x/api/charts/bar-label.js
index 062f1476b9b26..0d73ab30e465b 100644
--- a/docs/pages/x/api/charts/bar-label.js
+++ b/docs/pages/x/api/charts/bar-label.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './bar-label.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesBarLabel } from './types.bar-label';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['height', 'hidden', 'placement', 'width', 'x', 'xOrigin', 'y', 'yOrigin'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/bar-label',
- false,
- /\.\/bar-label.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/bar-plot.js b/docs/pages/x/api/charts/bar-plot.js
index 89b6ecb68ef15..a0208db2af5fb 100644
--- a/docs/pages/x/api/charts/bar-plot.js
+++ b/docs/pages/x/api/charts/bar-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './bar-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesBarPlot } from './types.bar-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['borderRadius', 'className', 'onItemClick', 'renderer', 'skipAnimation', 'slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/bar-plot',
- false,
- /\.\/bar-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/bar-series.js b/docs/pages/x/api/charts/bar-series.js
index 904280a5f800e..e90f145ac737f 100644
--- a/docs/pages/x/api/charts/bar-series.js
+++ b/docs/pages/x/api/charts/bar-series.js
@@ -1,22 +1,12 @@
-import * as React from 'react';
-import InterfaceApiPage from 'docsx/src/modules/components/InterfaceApiPage';
-import layoutConfig from 'docsx/src/modules/utils/dataGridLayoutConfig';
-import mapApiPageTranslations from 'docsx/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './bar-series.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesBarSeries } from './types.bar-series';
-export default function Page(props) {
- const { descriptions } = props;
- return (
-
- );
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/',
- false,
- /\.\/bar-series.*.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/candlestick-chart.js b/docs/pages/x/api/charts/candlestick-chart.js
index 26abc37bbd4e0..4c5d5d97d97d2 100644
--- a/docs/pages/x/api/charts/candlestick-chart.js
+++ b/docs/pages/x/api/charts/candlestick-chart.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './candlestick-chart.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesCandlestickChart } from './types.candlestick-chart';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axesGap', 'axisHighlight', 'colors', 'dataset', 'desc', 'disableAxisListener', 'grid', 'height', 'hiddenItems', 'hideLegend', 'highlightedAxis', 'highlightedItem', 'id', 'initialHiddenItems', 'initialZoom', 'loading', 'localeText', 'margin', 'onAxisClick', 'onHiddenItemsChange', 'onHighlightChange', 'onHighlightedAxisChange', 'onTooltipAxisChange', 'onTooltipItemChange', 'onZoomChange', 'series', 'showToolbar', 'skipAnimation', 'slotProps', 'slots', 'title', 'tooltipAxis', 'tooltipItem', 'width', 'xAxis', 'yAxis', 'zoomData', 'zoomInteractionConfig'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/candlestick-chart',
- false,
- /\.\/candlestick-chart.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/candlestick-plot.js b/docs/pages/x/api/charts/candlestick-plot.js
index 08b06c5447965..c18f0c4315844 100644
--- a/docs/pages/x/api/charts/candlestick-plot.js
+++ b/docs/pages/x/api/charts/candlestick-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './candlestick-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesCandlestickPlot } from './types.candlestick-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/candlestick-plot',
- false,
- /\.\/candlestick-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/chart-image-export-options.js b/docs/pages/x/api/charts/chart-image-export-options.js
index c2d92749451fc..14ec42ad5bc22 100644
--- a/docs/pages/x/api/charts/chart-image-export-options.js
+++ b/docs/pages/x/api/charts/chart-image-export-options.js
@@ -1,22 +1,12 @@
-import * as React from 'react';
-import InterfaceApiPage from 'docsx/src/modules/components/InterfaceApiPage';
-import layoutConfig from 'docsx/src/modules/utils/dataGridLayoutConfig';
-import mapApiPageTranslations from 'docsx/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './chart-image-export-options.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartImageExportOptions } from './types.chart-image-export-options';
-export default function Page(props) {
- const { descriptions } = props;
- return (
-
- );
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/',
- false,
- /\.\/chart-image-export-options.*.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/chart-print-export-options.js b/docs/pages/x/api/charts/chart-print-export-options.js
index 5fcbd2fc48570..415fe973526e2 100644
--- a/docs/pages/x/api/charts/chart-print-export-options.js
+++ b/docs/pages/x/api/charts/chart-print-export-options.js
@@ -1,22 +1,12 @@
-import * as React from 'react';
-import InterfaceApiPage from 'docsx/src/modules/components/InterfaceApiPage';
-import layoutConfig from 'docsx/src/modules/utils/dataGridLayoutConfig';
-import mapApiPageTranslations from 'docsx/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './chart-print-export-options.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartPrintExportOptions } from './types.chart-print-export-options';
-export default function Page(props) {
- const { descriptions } = props;
- return (
-
- );
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/',
- false,
- /\.\/chart-print-export-options.*.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-axis-highlight.js b/docs/pages/x/api/charts/charts-axis-highlight.js
index e5adae243673c..beb00f309e5a7 100644
--- a/docs/pages/x/api/charts/charts-axis-highlight.js
+++ b/docs/pages/x/api/charts/charts-axis-highlight.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-axis-highlight.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsAxisHighlight } from './types.charts-axis-highlight';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-axis-highlight',
- false,
- /\.\/charts-axis-highlight.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-axis-tooltip-content.js b/docs/pages/x/api/charts/charts-axis-tooltip-content.js
index 847c27787cb58..72de58bcd9192 100644
--- a/docs/pages/x/api/charts/charts-axis-tooltip-content.js
+++ b/docs/pages/x/api/charts/charts-axis-tooltip-content.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-axis-tooltip-content.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsAxisTooltipContent } from './types.charts-axis-tooltip-content';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['classes', 'sort'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-axis-tooltip-content',
- false,
- /\.\/charts-axis-tooltip-content.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-axis.js b/docs/pages/x/api/charts/charts-axis.js
index b3247a82b3618..156b609cbf488 100644
--- a/docs/pages/x/api/charts/charts-axis.js
+++ b/docs/pages/x/api/charts/charts-axis.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-axis.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsAxis } from './types.charts-axis';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-axis',
- false,
- /\.\/charts-axis.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-brush-overlay.js b/docs/pages/x/api/charts/charts-brush-overlay.js
index 07a8ec37e348c..3ef251c4397f2 100644
--- a/docs/pages/x/api/charts/charts-brush-overlay.js
+++ b/docs/pages/x/api/charts/charts-brush-overlay.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-brush-overlay.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsBrushOverlay } from './types.charts-brush-overlay';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-brush-overlay',
- false,
- /\.\/charts-brush-overlay.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-clip-path.js b/docs/pages/x/api/charts/charts-clip-path.js
index 566fc52ebcd24..cb6d13615bd82 100644
--- a/docs/pages/x/api/charts/charts-clip-path.js
+++ b/docs/pages/x/api/charts/charts-clip-path.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-clip-path.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsClipPath } from './types.charts-clip-path';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['id', 'offset'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-clip-path',
- false,
- /\.\/charts-clip-path.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-container-premium.js b/docs/pages/x/api/charts/charts-container-premium.js
index 655fd9617fd4a..aa912b1416be1 100644
--- a/docs/pages/x/api/charts/charts-container-premium.js
+++ b/docs/pages/x/api/charts/charts-container-premium.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-container-premium.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsContainerPremium } from './types.charts-container-premium';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-container-premium',
- false,
- /\.\/charts-container-premium.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-container-pro.js b/docs/pages/x/api/charts/charts-container-pro.js
index d3fd760dc4918..90bd3d7c23407 100644
--- a/docs/pages/x/api/charts/charts-container-pro.js
+++ b/docs/pages/x/api/charts/charts-container-pro.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-container-pro.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsContainerPro } from './types.charts-container-pro';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['colors', 'dataset', 'disableAxisListener', 'height', 'highlightedItem', 'id', 'initialZoom', 'margin', 'onHighlightChange', 'onZoomChange', 'series', 'skipAnimation', 'width', 'xAxis', 'yAxis', 'zAxis'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-container-pro',
- false,
- /\.\/charts-container-pro.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-container.js b/docs/pages/x/api/charts/charts-container.js
index 6fd8e673f74e1..8a2419f704ce2 100644
--- a/docs/pages/x/api/charts/charts-container.js
+++ b/docs/pages/x/api/charts/charts-container.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-container.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsContainer } from './types.charts-container';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axesGap', 'brushConfig', 'colors', 'dataset', 'desc', 'disableAxisListener', 'disableHitArea', 'disableKeyboardNavigation', 'experimentalFeatures', 'height', 'hiddenItems', 'highlightedAxis', 'highlightedItem', 'hitAreaRadius', 'id', 'initialHiddenItems', 'localeText', 'margin', 'onAxisClick', 'onHiddenItemsChange', 'onHighlightChange', 'onHighlightedAxisChange', 'onItemClick', 'onTooltipAxisChange', 'onTooltipItemChange', 'radiusAxis', 'rotationAxis', 'series', 'skipAnimation', 'slotProps', 'slots', 'title', 'tooltipAxis', 'tooltipItem', 'width', 'xAxis', 'yAxis', 'zAxis'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-container',
- false,
- /\.\/charts-container.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-data-provider-premium.js b/docs/pages/x/api/charts/charts-data-provider-premium.js
index 932bddf7ef978..12c42ded7d038 100644
--- a/docs/pages/x/api/charts/charts-data-provider-premium.js
+++ b/docs/pages/x/api/charts/charts-data-provider-premium.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-data-provider-premium.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsDataProviderPremium } from './types.charts-data-provider-premium';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['colors', 'dataset', 'height', 'id', 'localeText', 'margin', 'series', 'skipAnimation', 'slotProps', 'slots', 'width'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-data-provider-premium',
- false,
- /\.\/charts-data-provider-premium.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-data-provider-pro.js b/docs/pages/x/api/charts/charts-data-provider-pro.js
index 247b7f4c2d801..2155d418c4016 100644
--- a/docs/pages/x/api/charts/charts-data-provider-pro.js
+++ b/docs/pages/x/api/charts/charts-data-provider-pro.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-data-provider-pro.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsDataProviderPro } from './types.charts-data-provider-pro';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['colors', 'dataset', 'height', 'id', 'localeText', 'margin', 'series', 'skipAnimation', 'slotProps', 'slots', 'width'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-data-provider-pro',
- false,
- /\.\/charts-data-provider-pro.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-data-provider.js b/docs/pages/x/api/charts/charts-data-provider.js
index c4bf4e50dbb5e..cf23cd92e60e0 100644
--- a/docs/pages/x/api/charts/charts-data-provider.js
+++ b/docs/pages/x/api/charts/charts-data-provider.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-data-provider.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsDataProvider } from './types.charts-data-provider';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['colors', 'dataset', 'height', 'id', 'localeText', 'margin', 'series', 'skipAnimation', 'slotProps', 'slots', 'width'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-data-provider',
- false,
- /\.\/charts-data-provider.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-grid.js b/docs/pages/x/api/charts/charts-grid.js
index a7ec105b0ce79..a5c39719dd1cb 100644
--- a/docs/pages/x/api/charts/charts-grid.js
+++ b/docs/pages/x/api/charts/charts-grid.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-grid.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsGrid } from './types.charts-grid';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['classes', 'horizontal', 'vertical'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-grid',
- false,
- /\.\/charts-grid.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-item-tooltip-content.js b/docs/pages/x/api/charts/charts-item-tooltip-content.js
index f8143c0e574e2..24a9c41c87817 100644
--- a/docs/pages/x/api/charts/charts-item-tooltip-content.js
+++ b/docs/pages/x/api/charts/charts-item-tooltip-content.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-item-tooltip-content.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsItemTooltipContent } from './types.charts-item-tooltip-content';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['classes'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-item-tooltip-content',
- false,
- /\.\/charts-item-tooltip-content.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-legend.js b/docs/pages/x/api/charts/charts-legend.js
index 6441b2214c7ae..00819030c571b 100644
--- a/docs/pages/x/api/charts/charts-legend.js
+++ b/docs/pages/x/api/charts/charts-legend.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-legend.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsLegend } from './types.charts-legend';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['classes', 'direction', 'onItemClick', 'slotProps', 'slots', 'toggleVisibilityOnClick'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-legend',
- false,
- /\.\/charts-legend.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-localization-provider.js b/docs/pages/x/api/charts/charts-localization-provider.js
index a7697d44da743..07de4f703ddf7 100644
--- a/docs/pages/x/api/charts/charts-localization-provider.js
+++ b/docs/pages/x/api/charts/charts-localization-provider.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-localization-provider.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsLocalizationProvider } from './types.charts-localization-provider';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['localeText'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-localization-provider',
- false,
- /\.\/charts-localization-provider.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-reference-line.js b/docs/pages/x/api/charts/charts-reference-line.js
index 604b689fb73cb..6e42e910b5de1 100644
--- a/docs/pages/x/api/charts/charts-reference-line.js
+++ b/docs/pages/x/api/charts/charts-reference-line.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-reference-line.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsReferenceLine } from './types.charts-reference-line';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axisId', 'classes', 'label', 'labelAlign', 'labelStyle', 'lineStyle', 'spacing', 'x', 'y'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-reference-line',
- false,
- /\.\/charts-reference-line.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-surface.js b/docs/pages/x/api/charts/charts-surface.js
index a0f15d7d3dbdd..04f9c6d0a2ba6 100644
--- a/docs/pages/x/api/charts/charts-surface.js
+++ b/docs/pages/x/api/charts/charts-surface.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-surface.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsSurface } from './types.charts-surface';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['desc', 'title'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-surface',
- false,
- /\.\/charts-surface.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-text.js b/docs/pages/x/api/charts/charts-text.js
index b4fd56b367a5a..a03cd05fe2e23 100644
--- a/docs/pages/x/api/charts/charts-text.js
+++ b/docs/pages/x/api/charts/charts-text.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-text.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsText } from './types.charts-text';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['lineHeight', 'needsComputation', 'style', 'text'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-text',
- false,
- /\.\/charts-text.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-toolbar-image-export-trigger.js b/docs/pages/x/api/charts/charts-toolbar-image-export-trigger.js
index 2406a15f6c90c..7eee91f0b0333 100644
--- a/docs/pages/x/api/charts/charts-toolbar-image-export-trigger.js
+++ b/docs/pages/x/api/charts/charts-toolbar-image-export-trigger.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-toolbar-image-export-trigger.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsToolbarImageExportTrigger } from './types.charts-toolbar-image-export-trigger';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['options', 'render'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-toolbar-image-export-trigger',
- false,
- /\.\/charts-toolbar-image-export-trigger.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-toolbar-print-export-trigger.js b/docs/pages/x/api/charts/charts-toolbar-print-export-trigger.js
index 6152129bc96af..748c68540f273 100644
--- a/docs/pages/x/api/charts/charts-toolbar-print-export-trigger.js
+++ b/docs/pages/x/api/charts/charts-toolbar-print-export-trigger.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-toolbar-print-export-trigger.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsToolbarPrintExportTrigger } from './types.charts-toolbar-print-export-trigger';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['options', 'render'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-toolbar-print-export-trigger',
- false,
- /\.\/charts-toolbar-print-export-trigger.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-toolbar-pro.js b/docs/pages/x/api/charts/charts-toolbar-pro.js
index 03203e17f2da8..c4859f7c425fc 100644
--- a/docs/pages/x/api/charts/charts-toolbar-pro.js
+++ b/docs/pages/x/api/charts/charts-toolbar-pro.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-toolbar-pro.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsToolbarPro } from './types.charts-toolbar-pro';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-toolbar-pro',
- false,
- /\.\/charts-toolbar-pro.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-toolbar-zoom-in-trigger.js b/docs/pages/x/api/charts/charts-toolbar-zoom-in-trigger.js
index 9dd668a88ba77..b412330ccf4e6 100644
--- a/docs/pages/x/api/charts/charts-toolbar-zoom-in-trigger.js
+++ b/docs/pages/x/api/charts/charts-toolbar-zoom-in-trigger.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-toolbar-zoom-in-trigger.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsToolbarZoomInTrigger } from './types.charts-toolbar-zoom-in-trigger';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['render'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-toolbar-zoom-in-trigger',
- false,
- /\.\/charts-toolbar-zoom-in-trigger.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-toolbar-zoom-out-trigger.js b/docs/pages/x/api/charts/charts-toolbar-zoom-out-trigger.js
index ce3798642090b..cad1ec84e727d 100644
--- a/docs/pages/x/api/charts/charts-toolbar-zoom-out-trigger.js
+++ b/docs/pages/x/api/charts/charts-toolbar-zoom-out-trigger.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-toolbar-zoom-out-trigger.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsToolbarZoomOutTrigger } from './types.charts-toolbar-zoom-out-trigger';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['render'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-toolbar-zoom-out-trigger',
- false,
- /\.\/charts-toolbar-zoom-out-trigger.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-tooltip-container.js b/docs/pages/x/api/charts/charts-tooltip-container.js
index a9db2d6cee91a..0e98784fc7c7e 100644
--- a/docs/pages/x/api/charts/charts-tooltip-container.js
+++ b/docs/pages/x/api/charts/charts-tooltip-container.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-tooltip-container.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsTooltipContainer } from './types.charts-tooltip-container';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['anchor', 'anchorEl', 'children', 'classes', 'component', 'components', 'componentsProps', 'container', 'disablePortal', 'keepMounted', 'modifiers', 'open', 'placement', 'popperOptions', 'popperRef', 'position', 'slotProps', 'slots', 'sx', 'transition', 'trigger'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-tooltip-container',
- false,
- /\.\/charts-tooltip-container.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-tooltip.js b/docs/pages/x/api/charts/charts-tooltip.js
index 051376e0ac538..8981ac302ed81 100644
--- a/docs/pages/x/api/charts/charts-tooltip.js
+++ b/docs/pages/x/api/charts/charts-tooltip.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-tooltip.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsTooltip } from './types.charts-tooltip';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['anchor', 'anchorEl', 'classes', 'component', 'components', 'componentsProps', 'container', 'disablePortal', 'keepMounted', 'modifiers', 'open', 'placement', 'popperOptions', 'popperRef', 'position', 'slotProps', 'slots', 'sort', 'sx', 'transition', 'trigger'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-tooltip',
- false,
- /\.\/charts-tooltip.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-wrapper.js b/docs/pages/x/api/charts/charts-wrapper.js
index 2b1de631ae737..37fc3107b6c73 100644
--- a/docs/pages/x/api/charts/charts-wrapper.js
+++ b/docs/pages/x/api/charts/charts-wrapper.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-wrapper.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsWrapper } from './types.charts-wrapper';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['extendVertically', 'hideLegend', 'legendDirection', 'legendPosition'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-wrapper',
- false,
- /\.\/charts-wrapper.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-x-axis.js b/docs/pages/x/api/charts/charts-x-axis.js
index 8475d03a81cf7..c44e0c0b4212f 100644
--- a/docs/pages/x/api/charts/charts-x-axis.js
+++ b/docs/pages/x/api/charts/charts-x-axis.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-x-axis.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsXAxis } from './types.charts-x-axis';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axisId', 'classes', 'disableLine', 'disableTicks', 'label', 'labelStyle', 'slotProps', 'slots', 'tickInterval', 'tickLabelInterval', 'tickLabelMinGap', 'tickLabelPlacement', 'tickLabelStyle', 'tickMaxStep', 'tickMinStep', 'tickNumber', 'tickPlacement', 'tickSize'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-x-axis',
- false,
- /\.\/charts-x-axis.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-y-axis.js b/docs/pages/x/api/charts/charts-y-axis.js
index f070dab82d0d6..923789e685d65 100644
--- a/docs/pages/x/api/charts/charts-y-axis.js
+++ b/docs/pages/x/api/charts/charts-y-axis.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-y-axis.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsYAxis } from './types.charts-y-axis';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axisId', 'classes', 'disableLine', 'disableTicks', 'label', 'labelStyle', 'slotProps', 'slots', 'tickInterval', 'tickLabelInterval', 'tickLabelPlacement', 'tickLabelStyle', 'tickMaxStep', 'tickMinStep', 'tickNumber', 'tickPlacement', 'tickSize'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-y-axis',
- false,
- /\.\/charts-y-axis.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/charts-zoom-slider.js b/docs/pages/x/api/charts/charts-zoom-slider.js
index c902e6c27be51..11c104188591f 100644
--- a/docs/pages/x/api/charts/charts-zoom-slider.js
+++ b/docs/pages/x/api/charts/charts-zoom-slider.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './charts-zoom-slider.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesChartsZoomSlider } from './types.charts-zoom-slider';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/charts-zoom-slider',
- false,
- /\.\/charts-zoom-slider.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/continuous-color-legend.js b/docs/pages/x/api/charts/continuous-color-legend.js
index fa3c42ac6e0e8..40df520f7ee5b 100644
--- a/docs/pages/x/api/charts/continuous-color-legend.js
+++ b/docs/pages/x/api/charts/continuous-color-legend.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './continuous-color-legend.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesContinuousColorLegend } from './types.continuous-color-legend';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axisDirection', 'axisId', 'classes', 'direction', 'gradientId', 'labelPosition', 'maxLabel', 'minLabel', 'reverse', 'rotateGradient', 'thickness'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/continuous-color-legend',
- false,
- /\.\/continuous-color-legend.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/focused-funnel-section.js b/docs/pages/x/api/charts/focused-funnel-section.js
index fc8be4b84bf29..2459d2ada5da0 100644
--- a/docs/pages/x/api/charts/focused-funnel-section.js
+++ b/docs/pages/x/api/charts/focused-funnel-section.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './focused-funnel-section.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesFocusedFunnelSection } from './types.focused-funnel-section';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/focused-funnel-section',
- false,
- /\.\/focused-funnel-section.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/focused-heatmap-cell.js b/docs/pages/x/api/charts/focused-heatmap-cell.js
index f6256afac0656..9c9006c795d13 100644
--- a/docs/pages/x/api/charts/focused-heatmap-cell.js
+++ b/docs/pages/x/api/charts/focused-heatmap-cell.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './focused-heatmap-cell.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesFocusedHeatmapCell } from './types.focused-heatmap-cell';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/focused-heatmap-cell',
- false,
- /\.\/focused-heatmap-cell.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/focused-radar-mark.js b/docs/pages/x/api/charts/focused-radar-mark.js
index 022512ab391b0..d54770d29b6b7 100644
--- a/docs/pages/x/api/charts/focused-radar-mark.js
+++ b/docs/pages/x/api/charts/focused-radar-mark.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './focused-radar-mark.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesFocusedRadarMark } from './types.focused-radar-mark';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/focused-radar-mark',
- false,
- /\.\/focused-radar-mark.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/focused-range-bar.js b/docs/pages/x/api/charts/focused-range-bar.js
index 8b7519b57efd9..135aabfb5969f 100644
--- a/docs/pages/x/api/charts/focused-range-bar.js
+++ b/docs/pages/x/api/charts/focused-range-bar.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './focused-range-bar.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesFocusedRangeBar } from './types.focused-range-bar';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/focused-range-bar',
- false,
- /\.\/focused-range-bar.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/focused-sankey-link.js b/docs/pages/x/api/charts/focused-sankey-link.js
index 2a5ed861901a0..3b78881aa023e 100644
--- a/docs/pages/x/api/charts/focused-sankey-link.js
+++ b/docs/pages/x/api/charts/focused-sankey-link.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './focused-sankey-link.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesFocusedSankeyLink } from './types.focused-sankey-link';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/focused-sankey-link',
- false,
- /\.\/focused-sankey-link.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/focused-sankey-node.js b/docs/pages/x/api/charts/focused-sankey-node.js
index 86b0a74546d1f..851c41bd31fb1 100644
--- a/docs/pages/x/api/charts/focused-sankey-node.js
+++ b/docs/pages/x/api/charts/focused-sankey-node.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './focused-sankey-node.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesFocusedSankeyNode } from './types.focused-sankey-node';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/focused-sankey-node',
- false,
- /\.\/focused-sankey-node.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/funnel-chart.js b/docs/pages/x/api/charts/funnel-chart.js
index 32aef0faefddd..584ee5cbbd511 100644
--- a/docs/pages/x/api/charts/funnel-chart.js
+++ b/docs/pages/x/api/charts/funnel-chart.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './funnel-chart.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesFunnelChart } from './types.funnel-chart';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axisHighlight', 'categoryAxis', 'colors', 'desc', 'disableAxisListener', 'disableKeyboardNavigation', 'experimentalFeatures', 'gap', 'height', 'hiddenItems', 'hideLegend', 'highlightedItem', 'id', 'initialHiddenItems', 'loading', 'localeText', 'margin', 'onAxisClick', 'onHiddenItemsChange', 'onHighlightChange', 'onItemClick', 'onTooltipItemChange', 'series', 'skipAnimation', 'slotProps', 'slots', 'title', 'tooltipItem', 'width'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/funnel-chart',
- false,
- /\.\/funnel-chart.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/funnel-plot.js b/docs/pages/x/api/charts/funnel-plot.js
index 34bb54b209442..70d98d03d8276 100644
--- a/docs/pages/x/api/charts/funnel-plot.js
+++ b/docs/pages/x/api/charts/funnel-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './funnel-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesFunnelPlot } from './types.funnel-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['onItemClick', 'slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/funnel-plot',
- false,
- /\.\/funnel-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/funnel-series.js b/docs/pages/x/api/charts/funnel-series.js
index 6d06e1f509049..d5abf03bacc55 100644
--- a/docs/pages/x/api/charts/funnel-series.js
+++ b/docs/pages/x/api/charts/funnel-series.js
@@ -1,22 +1,12 @@
-import * as React from 'react';
-import InterfaceApiPage from 'docsx/src/modules/components/InterfaceApiPage';
-import layoutConfig from 'docsx/src/modules/utils/dataGridLayoutConfig';
-import mapApiPageTranslations from 'docsx/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './funnel-series.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesFunnelSeries } from './types.funnel-series';
-export default function Page(props) {
- const { descriptions } = props;
- return (
-
- );
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/',
- false,
- /\.\/funnel-series.*.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/gauge-container.js b/docs/pages/x/api/charts/gauge-container.js
index c669dbb031e8b..de15fc31f6fcf 100644
--- a/docs/pages/x/api/charts/gauge-container.js
+++ b/docs/pages/x/api/charts/gauge-container.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './gauge-container.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesGaugeContainer } from './types.gauge-container';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['cornerRadius', 'cx', 'cy', 'desc', 'endAngle', 'height', 'id', 'innerRadius', 'margin', 'outerRadius', 'skipAnimation', 'startAngle', 'title', 'value', 'valueMax', 'valueMin', 'width'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/gauge-container',
- false,
- /\.\/gauge-container.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/gauge.js b/docs/pages/x/api/charts/gauge.js
index 5d6787746d9c8..69e0bc72b8b6c 100644
--- a/docs/pages/x/api/charts/gauge.js
+++ b/docs/pages/x/api/charts/gauge.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './gauge.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesGauge } from './types.gauge';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['cornerRadius', 'cx', 'cy', 'desc', 'endAngle', 'height', 'id', 'innerRadius', 'margin', 'outerRadius', 'skipAnimation', 'startAngle', 'title', 'value', 'valueMax', 'valueMin', 'width'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/gauge',
- false,
- /\.\/gauge.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/heatmap-cell.js b/docs/pages/x/api/charts/heatmap-cell.js
index b010ebe16187e..98443e91aadff 100644
--- a/docs/pages/x/api/charts/heatmap-cell.js
+++ b/docs/pages/x/api/charts/heatmap-cell.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './heatmap-cell.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesHeatmapCell } from './types.heatmap-cell';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/heatmap-cell',
- false,
- /\.\/heatmap-cell.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/heatmap-plot.js b/docs/pages/x/api/charts/heatmap-plot.js
index 2155a3681f870..e8881db08d36d 100644
--- a/docs/pages/x/api/charts/heatmap-plot.js
+++ b/docs/pages/x/api/charts/heatmap-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './heatmap-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesHeatmapPlot } from './types.heatmap-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['borderRadius', 'className', 'slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/heatmap-plot',
- false,
- /\.\/heatmap-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/heatmap-premium.js b/docs/pages/x/api/charts/heatmap-premium.js
index ba465fc43bf94..e25f77eeec4c3 100644
--- a/docs/pages/x/api/charts/heatmap-premium.js
+++ b/docs/pages/x/api/charts/heatmap-premium.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './heatmap-premium.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesHeatmapPremium } from './types.heatmap-premium';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['borderRadius', 'brushConfig', 'colors', 'dataset', 'desc', 'disableAxisListener', 'disableKeyboardNavigation', 'experimentalFeatures', 'height', 'hideLegend', 'highlightedItem', 'id', 'initialZoom', 'loading', 'localeText', 'margin', 'onHighlightChange', 'onItemClick', 'onTooltipAxisChange', 'onTooltipItemChange', 'onZoomChange', 'renderer', 'series', 'showToolbar', 'slotProps', 'slots', 'title', 'tooltip', 'tooltipAxis', 'tooltipItem', 'width', 'xAxis', 'yAxis', 'zAxis', 'zoomData', 'zoomInteractionConfig'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/heatmap-premium',
- false,
- /\.\/heatmap-premium.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/heatmap-series.js b/docs/pages/x/api/charts/heatmap-series.js
index 3f2228ffa3f2f..3f5f6d2313e3d 100644
--- a/docs/pages/x/api/charts/heatmap-series.js
+++ b/docs/pages/x/api/charts/heatmap-series.js
@@ -1,22 +1,12 @@
-import * as React from 'react';
-import InterfaceApiPage from 'docsx/src/modules/components/InterfaceApiPage';
-import layoutConfig from 'docsx/src/modules/utils/dataGridLayoutConfig';
-import mapApiPageTranslations from 'docsx/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './heatmap-series.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesHeatmapSeries } from './types.heatmap-series';
-export default function Page(props) {
- const { descriptions } = props;
- return (
-
- );
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/',
- false,
- /\.\/heatmap-series.*.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/heatmap-tooltip-content.js b/docs/pages/x/api/charts/heatmap-tooltip-content.js
index 96176fa8d67e9..ba76e39b7602c 100644
--- a/docs/pages/x/api/charts/heatmap-tooltip-content.js
+++ b/docs/pages/x/api/charts/heatmap-tooltip-content.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './heatmap-tooltip-content.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesHeatmapTooltipContent } from './types.heatmap-tooltip-content';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['classes'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/heatmap-tooltip-content',
- false,
- /\.\/heatmap-tooltip-content.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/heatmap-tooltip.js b/docs/pages/x/api/charts/heatmap-tooltip.js
index bf4dd9ab427e5..d4386a143120b 100644
--- a/docs/pages/x/api/charts/heatmap-tooltip.js
+++ b/docs/pages/x/api/charts/heatmap-tooltip.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './heatmap-tooltip.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesHeatmapTooltip } from './types.heatmap-tooltip';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['anchor', 'anchorEl', 'classes', 'component', 'components', 'componentsProps', 'container', 'disablePortal', 'keepMounted', 'modifiers', 'open', 'placement', 'popperOptions', 'popperRef', 'position', 'slotProps', 'slots', 'sx', 'transition', 'trigger'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/heatmap-tooltip',
- false,
- /\.\/heatmap-tooltip.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/heatmap.js b/docs/pages/x/api/charts/heatmap.js
index 7a6362626eb3e..c1d85c316a2a8 100644
--- a/docs/pages/x/api/charts/heatmap.js
+++ b/docs/pages/x/api/charts/heatmap.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './heatmap.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesHeatmap } from './types.heatmap';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['borderRadius', 'brushConfig', 'colors', 'dataset', 'desc', 'disableAxisListener', 'disableKeyboardNavigation', 'experimentalFeatures', 'height', 'hideLegend', 'highlightedItem', 'id', 'initialZoom', 'loading', 'localeText', 'margin', 'onHighlightChange', 'onItemClick', 'onTooltipAxisChange', 'onTooltipItemChange', 'onZoomChange', 'series', 'showToolbar', 'slotProps', 'slots', 'title', 'tooltip', 'tooltipAxis', 'tooltipItem', 'width', 'xAxis', 'yAxis', 'zAxis', 'zoomData', 'zoomInteractionConfig'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/heatmap',
- false,
- /\.\/heatmap.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/legend-item-params.js b/docs/pages/x/api/charts/legend-item-params.js
index bcb6ce835da7f..b42e3a6b20a86 100644
--- a/docs/pages/x/api/charts/legend-item-params.js
+++ b/docs/pages/x/api/charts/legend-item-params.js
@@ -1,22 +1,12 @@
-import * as React from 'react';
-import InterfaceApiPage from 'docsx/src/modules/components/InterfaceApiPage';
-import layoutConfig from 'docsx/src/modules/utils/dataGridLayoutConfig';
-import mapApiPageTranslations from 'docsx/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './legend-item-params.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesLegendItemParams } from './types.legend-item-params';
-export default function Page(props) {
- const { descriptions } = props;
- return (
-
- );
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/',
- false,
- /\.\/legend-item-params.*.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/line-chart-pro.js b/docs/pages/x/api/charts/line-chart-pro.js
index 980facd3b7bdb..d0682949f2375 100644
--- a/docs/pages/x/api/charts/line-chart-pro.js
+++ b/docs/pages/x/api/charts/line-chart-pro.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './line-chart-pro.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesLineChartPro } from './types.line-chart-pro';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axesGap', 'axisHighlight', 'brushConfig', 'colors', 'dataset', 'desc', 'disableAxisListener', 'disableKeyboardNavigation', 'disableLineItemHighlight', 'experimentalFeatures', 'grid', 'height', 'hiddenItems', 'hideLegend', 'highlightedAxis', 'highlightedItem', 'id', 'initialHiddenItems', 'initialZoom', 'loading', 'localeText', 'margin', 'onAreaClick', 'onAxisClick', 'onHiddenItemsChange', 'onHighlightChange', 'onHighlightedAxisChange', 'onLineClick', 'onMarkClick', 'onTooltipAxisChange', 'onTooltipItemChange', 'onZoomChange', 'series', 'showToolbar', 'skipAnimation', 'slotProps', 'slots', 'title', 'tooltipAxis', 'tooltipItem', 'width', 'xAxis', 'yAxis', 'zAxis', 'zoomData', 'zoomInteractionConfig'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/line-chart-pro',
- false,
- /\.\/line-chart-pro.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/line-chart.js b/docs/pages/x/api/charts/line-chart.js
index beb551dcf7aba..07749d738f6c4 100644
--- a/docs/pages/x/api/charts/line-chart.js
+++ b/docs/pages/x/api/charts/line-chart.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './line-chart.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesLineChart } from './types.line-chart';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axesGap', 'axisHighlight', 'brushConfig', 'colors', 'dataset', 'desc', 'disableAxisListener', 'disableKeyboardNavigation', 'disableLineItemHighlight', 'experimentalFeatures', 'grid', 'height', 'hiddenItems', 'hideLegend', 'highlightedAxis', 'highlightedItem', 'id', 'initialHiddenItems', 'loading', 'localeText', 'margin', 'onAreaClick', 'onAxisClick', 'onHiddenItemsChange', 'onHighlightChange', 'onHighlightedAxisChange', 'onLineClick', 'onMarkClick', 'onTooltipAxisChange', 'onTooltipItemChange', 'series', 'showToolbar', 'skipAnimation', 'slotProps', 'slots', 'title', 'tooltipAxis', 'tooltipItem', 'width', 'xAxis', 'yAxis'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/line-chart',
- false,
- /\.\/line-chart.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/line-element.js b/docs/pages/x/api/charts/line-element.js
index d7184c18b0a04..0a1150b897175 100644
--- a/docs/pages/x/api/charts/line-element.js
+++ b/docs/pages/x/api/charts/line-element.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './line-element.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesLineElement } from './types.line-element';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['hidden', 'skipAnimation', 'slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/line-element',
- false,
- /\.\/line-element.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/line-highlight-element.js b/docs/pages/x/api/charts/line-highlight-element.js
index 2a0b2f554d617..36960eb6b2179 100644
--- a/docs/pages/x/api/charts/line-highlight-element.js
+++ b/docs/pages/x/api/charts/line-highlight-element.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './line-highlight-element.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesLineHighlightElement } from './types.line-highlight-element';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/line-highlight-element',
- false,
- /\.\/line-highlight-element.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/line-highlight-plot.js b/docs/pages/x/api/charts/line-highlight-plot.js
index 72853a4088d5a..b88954f9d7382 100644
--- a/docs/pages/x/api/charts/line-highlight-plot.js
+++ b/docs/pages/x/api/charts/line-highlight-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './line-highlight-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesLineHighlightPlot } from './types.line-highlight-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/line-highlight-plot',
- false,
- /\.\/line-highlight-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/line-plot.js b/docs/pages/x/api/charts/line-plot.js
index 7bbb61a96c45d..f89959950b724 100644
--- a/docs/pages/x/api/charts/line-plot.js
+++ b/docs/pages/x/api/charts/line-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './line-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesLinePlot } from './types.line-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['onItemClick', 'skipAnimation', 'slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/line-plot',
- false,
- /\.\/line-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/line-series.js b/docs/pages/x/api/charts/line-series.js
index 0930ba5152aea..be5b73d670a5c 100644
--- a/docs/pages/x/api/charts/line-series.js
+++ b/docs/pages/x/api/charts/line-series.js
@@ -1,22 +1,12 @@
-import * as React from 'react';
-import InterfaceApiPage from 'docsx/src/modules/components/InterfaceApiPage';
-import layoutConfig from 'docsx/src/modules/utils/dataGridLayoutConfig';
-import mapApiPageTranslations from 'docsx/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './line-series.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesLineSeries } from './types.line-series';
-export default function Page(props) {
- const { descriptions } = props;
- return (
-
- );
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/',
- false,
- /\.\/line-series.*.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/mark-element.js b/docs/pages/x/api/charts/mark-element.js
index ef1578e89fe21..9348deb99a083 100644
--- a/docs/pages/x/api/charts/mark-element.js
+++ b/docs/pages/x/api/charts/mark-element.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './mark-element.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesMarkElement } from './types.mark-element';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['dataIndex', 'hidden', 'isFaded', 'isHighlighted', 'shape', 'skipAnimation'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/mark-element',
- false,
- /\.\/mark-element.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/mark-plot.js b/docs/pages/x/api/charts/mark-plot.js
index dc046255e92b2..15aa2b09fa2ce 100644
--- a/docs/pages/x/api/charts/mark-plot.js
+++ b/docs/pages/x/api/charts/mark-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './mark-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesMarkPlot } from './types.mark-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['onItemClick', 'skipAnimation', 'slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/mark-plot',
- false,
- /\.\/mark-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/pie-arc-label-plot.js b/docs/pages/x/api/charts/pie-arc-label-plot.js
index f90cb91f321ab..696dbf356415d 100644
--- a/docs/pages/x/api/charts/pie-arc-label-plot.js
+++ b/docs/pages/x/api/charts/pie-arc-label-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './pie-arc-label-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesPieArcLabelPlot } from './types.pie-arc-label-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['arcLabel', 'arcLabelMinAngle', 'arcLabelRadius', 'cornerRadius', 'faded', 'highlighted', 'innerRadius', 'outerRadius', 'paddingAngle', 'seriesId', 'skipAnimation', 'slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/pie-arc-label-plot',
- false,
- /\.\/pie-arc-label-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/pie-arc-label.js b/docs/pages/x/api/charts/pie-arc-label.js
index 167aacf48bb4f..0b3da0489ce86 100644
--- a/docs/pages/x/api/charts/pie-arc-label.js
+++ b/docs/pages/x/api/charts/pie-arc-label.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './pie-arc-label.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesPieArcLabel } from './types.pie-arc-label';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/pie-arc-label',
- false,
- /\.\/pie-arc-label.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/pie-arc-plot.js b/docs/pages/x/api/charts/pie-arc-plot.js
index 93f14c2f02bfd..a3a2b360e833b 100644
--- a/docs/pages/x/api/charts/pie-arc-plot.js
+++ b/docs/pages/x/api/charts/pie-arc-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './pie-arc-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesPieArcPlot } from './types.pie-arc-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['arcLabelRadius', 'cornerRadius', 'faded', 'highlighted', 'innerRadius', 'onItemClick', 'outerRadius', 'paddingAngle', 'seriesId', 'skipAnimation', 'slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/pie-arc-plot',
- false,
- /\.\/pie-arc-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/pie-arc.js b/docs/pages/x/api/charts/pie-arc.js
index 69bf4d4267107..5bc256ebb1566 100644
--- a/docs/pages/x/api/charts/pie-arc.js
+++ b/docs/pages/x/api/charts/pie-arc.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './pie-arc.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesPieArc } from './types.pie-arc';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['skipAnimation', 'skipInteraction'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/pie-arc',
- false,
- /\.\/pie-arc.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/pie-chart-pro.js b/docs/pages/x/api/charts/pie-chart-pro.js
index 49c2012ec110d..6b5a3b4920125 100644
--- a/docs/pages/x/api/charts/pie-chart-pro.js
+++ b/docs/pages/x/api/charts/pie-chart-pro.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './pie-chart-pro.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesPieChartPro } from './types.pie-chart-pro';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['colors', 'dataset', 'desc', 'disableKeyboardNavigation', 'experimentalFeatures', 'height', 'hiddenItems', 'hideLegend', 'highlightedItem', 'id', 'initialHiddenItems', 'loading', 'localeText', 'margin', 'onHiddenItemsChange', 'onHighlightChange', 'onItemClick', 'onTooltipItemChange', 'series', 'showToolbar', 'skipAnimation', 'slotProps', 'slots', 'title', 'tooltipItem', 'width'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/pie-chart-pro',
- false,
- /\.\/pie-chart-pro.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/pie-chart.js b/docs/pages/x/api/charts/pie-chart.js
index a8d7670843f31..6d025217d2dad 100644
--- a/docs/pages/x/api/charts/pie-chart.js
+++ b/docs/pages/x/api/charts/pie-chart.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './pie-chart.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesPieChart } from './types.pie-chart';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['colors', 'dataset', 'desc', 'disableKeyboardNavigation', 'experimentalFeatures', 'height', 'hiddenItems', 'hideLegend', 'highlightedItem', 'id', 'initialHiddenItems', 'loading', 'localeText', 'margin', 'onHiddenItemsChange', 'onHighlightChange', 'onItemClick', 'onTooltipItemChange', 'series', 'showToolbar', 'skipAnimation', 'slotProps', 'slots', 'title', 'tooltipItem', 'width'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/pie-chart',
- false,
- /\.\/pie-chart.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/pie-plot.js b/docs/pages/x/api/charts/pie-plot.js
index ed826c648f964..b378a83d57ea8 100644
--- a/docs/pages/x/api/charts/pie-plot.js
+++ b/docs/pages/x/api/charts/pie-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './pie-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesPiePlot } from './types.pie-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['onItemClick', 'skipAnimation', 'slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/pie-plot',
- false,
- /\.\/pie-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/pie-series.js b/docs/pages/x/api/charts/pie-series.js
index 40f519e6a36b3..d5fb006d07856 100644
--- a/docs/pages/x/api/charts/pie-series.js
+++ b/docs/pages/x/api/charts/pie-series.js
@@ -1,22 +1,12 @@
-import * as React from 'react';
-import InterfaceApiPage from 'docsx/src/modules/components/InterfaceApiPage';
-import layoutConfig from 'docsx/src/modules/utils/dataGridLayoutConfig';
-import mapApiPageTranslations from 'docsx/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './pie-series.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesPieSeries } from './types.pie-series';
-export default function Page(props) {
- const { descriptions } = props;
- return (
-
- );
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/',
- false,
- /\.\/pie-series.*.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/piecewise-color-legend.js b/docs/pages/x/api/charts/piecewise-color-legend.js
index f40a52fcc3260..c5a8fefbef394 100644
--- a/docs/pages/x/api/charts/piecewise-color-legend.js
+++ b/docs/pages/x/api/charts/piecewise-color-legend.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './piecewise-color-legend.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesPiecewiseColorLegend } from './types.piecewise-color-legend';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axisDirection', 'axisId', 'classes', 'direction', 'labelFormatter', 'labelPosition', 'markType', 'onItemClick'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/piecewise-color-legend',
- false,
- /\.\/piecewise-color-legend.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/radar-axis-highlight.js b/docs/pages/x/api/charts/radar-axis-highlight.js
index 8dbb80f1a1e53..4c7cfb840b457 100644
--- a/docs/pages/x/api/charts/radar-axis-highlight.js
+++ b/docs/pages/x/api/charts/radar-axis-highlight.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './radar-axis-highlight.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesRadarAxisHighlight } from './types.radar-axis-highlight';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['classes'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/radar-axis-highlight',
- false,
- /\.\/radar-axis-highlight.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/radar-axis.js b/docs/pages/x/api/charts/radar-axis.js
index 0fa853dffc46a..148258c365e2e 100644
--- a/docs/pages/x/api/charts/radar-axis.js
+++ b/docs/pages/x/api/charts/radar-axis.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './radar-axis.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesRadarAxis } from './types.radar-axis';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['angle', 'classes', 'divisions', 'dominantBaseline', 'labelOrientation', 'metric', 'textAnchor'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/radar-axis',
- false,
- /\.\/radar-axis.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/radar-chart-pro.js b/docs/pages/x/api/charts/radar-chart-pro.js
index c48732ce6cf3d..32bb57cef5d92 100644
--- a/docs/pages/x/api/charts/radar-chart-pro.js
+++ b/docs/pages/x/api/charts/radar-chart-pro.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './radar-chart-pro.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesRadarChartPro } from './types.radar-chart-pro';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['className', 'colors', 'desc', 'disableAxisListener', 'disableKeyboardNavigation', 'divisions', 'experimentalFeatures', 'height', 'hiddenItems', 'hideLegend', 'highlight', 'highlightedItem', 'id', 'initialHiddenItems', 'loading', 'localeText', 'margin', 'onAreaClick', 'onAxisClick', 'onHiddenItemsChange', 'onHighlightChange', 'onMarkClick', 'onTooltipItemChange', 'radar', 'series', 'shape', 'showToolbar', 'skipAnimation', 'slotProps', 'slots', 'stripeColor', 'title', 'tooltipItem', 'width'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/radar-chart-pro',
- false,
- /\.\/radar-chart-pro.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/radar-chart.js b/docs/pages/x/api/charts/radar-chart.js
index 91d0066cd7ded..ac7eb4b7e7e90 100644
--- a/docs/pages/x/api/charts/radar-chart.js
+++ b/docs/pages/x/api/charts/radar-chart.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './radar-chart.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesRadarChart } from './types.radar-chart';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['className', 'colors', 'desc', 'disableAxisListener', 'disableKeyboardNavigation', 'divisions', 'experimentalFeatures', 'height', 'hiddenItems', 'hideLegend', 'highlight', 'highlightedItem', 'id', 'initialHiddenItems', 'loading', 'localeText', 'margin', 'onAreaClick', 'onAxisClick', 'onHiddenItemsChange', 'onHighlightChange', 'onMarkClick', 'onTooltipItemChange', 'radar', 'series', 'shape', 'showToolbar', 'skipAnimation', 'slotProps', 'slots', 'stripeColor', 'title', 'tooltipItem', 'width'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/radar-chart',
- false,
- /\.\/radar-chart.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/radar-grid.js b/docs/pages/x/api/charts/radar-grid.js
index 4cae160e86aed..140787f151eba 100644
--- a/docs/pages/x/api/charts/radar-grid.js
+++ b/docs/pages/x/api/charts/radar-grid.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './radar-grid.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesRadarGrid } from './types.radar-grid';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['classes', 'divisions', 'shape', 'stripeColor'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/radar-grid',
- false,
- /\.\/radar-grid.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/radar-metric-labels.js b/docs/pages/x/api/charts/radar-metric-labels.js
index a95d2dace59b8..76f822f2dc690 100644
--- a/docs/pages/x/api/charts/radar-metric-labels.js
+++ b/docs/pages/x/api/charts/radar-metric-labels.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './radar-metric-labels.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesRadarMetricLabels } from './types.radar-metric-labels';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/radar-metric-labels',
- false,
- /\.\/radar-metric-labels.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/radar-series-area.js b/docs/pages/x/api/charts/radar-series-area.js
index 7f1aebb435ab5..c801e8119876a 100644
--- a/docs/pages/x/api/charts/radar-series-area.js
+++ b/docs/pages/x/api/charts/radar-series-area.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './radar-series-area.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesRadarSeriesArea } from './types.radar-series-area';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['classes', 'onItemClick', 'seriesId'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/radar-series-area',
- false,
- /\.\/radar-series-area.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/radar-series-marks.js b/docs/pages/x/api/charts/radar-series-marks.js
index 1a03096ca28a1..8e5631ca2c402 100644
--- a/docs/pages/x/api/charts/radar-series-marks.js
+++ b/docs/pages/x/api/charts/radar-series-marks.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './radar-series-marks.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesRadarSeriesMarks } from './types.radar-series-marks';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['classes', 'onItemClick', 'seriesId'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/radar-series-marks',
- false,
- /\.\/radar-series-marks.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/radar-series-plot.js b/docs/pages/x/api/charts/radar-series-plot.js
index b7ff1df34d997..de5975824407d 100644
--- a/docs/pages/x/api/charts/radar-series-plot.js
+++ b/docs/pages/x/api/charts/radar-series-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './radar-series-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesRadarSeriesPlot } from './types.radar-series-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['classes', 'onAreaClick', 'onMarkClick', 'seriesId'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/radar-series-plot',
- false,
- /\.\/radar-series-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/radar-series.js b/docs/pages/x/api/charts/radar-series.js
index 165a72fe2fa35..be18867bf2d2f 100644
--- a/docs/pages/x/api/charts/radar-series.js
+++ b/docs/pages/x/api/charts/radar-series.js
@@ -1,22 +1,12 @@
-import * as React from 'react';
-import InterfaceApiPage from 'docsx/src/modules/components/InterfaceApiPage';
-import layoutConfig from 'docsx/src/modules/utils/dataGridLayoutConfig';
-import mapApiPageTranslations from 'docsx/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './radar-series.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesRadarSeries } from './types.radar-series';
-export default function Page(props) {
- const { descriptions } = props;
- return (
-
- );
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/',
- false,
- /\.\/radar-series.*.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/range-bar-plot.js b/docs/pages/x/api/charts/range-bar-plot.js
index e074412d1e62c..77b71f8fdc37e 100644
--- a/docs/pages/x/api/charts/range-bar-plot.js
+++ b/docs/pages/x/api/charts/range-bar-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './range-bar-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesRangeBarPlot } from './types.range-bar-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['borderRadius', 'onItemClick', 'skipAnimation', 'slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/range-bar-plot',
- false,
- /\.\/range-bar-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/sankey-chart.js b/docs/pages/x/api/charts/sankey-chart.js
index 2483bc76351e4..67464fe9c7b9e 100644
--- a/docs/pages/x/api/charts/sankey-chart.js
+++ b/docs/pages/x/api/charts/sankey-chart.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './sankey-chart.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesSankeyChart } from './types.sankey-chart';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['classes', 'colors', 'desc', 'disableKeyboardNavigation', 'experimentalFeatures', 'height', 'highlightedItem', 'id', 'loading', 'localeText', 'margin', 'onHighlightChange', 'onLinkClick', 'onNodeClick', 'onTooltipItemChange', 'series', 'slotProps', 'slots', 'title', 'tooltipItem', 'width'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/sankey-chart',
- false,
- /\.\/sankey-chart.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/sankey-data-provider.js b/docs/pages/x/api/charts/sankey-data-provider.js
index ceae489af2255..7ad30697ba763 100644
--- a/docs/pages/x/api/charts/sankey-data-provider.js
+++ b/docs/pages/x/api/charts/sankey-data-provider.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './sankey-data-provider.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesSankeyDataProvider } from './types.sankey-data-provider';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/sankey-data-provider',
- false,
- /\.\/sankey-data-provider.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/sankey-plot.js b/docs/pages/x/api/charts/sankey-plot.js
index f03482dee53bf..aa6dd714addad 100644
--- a/docs/pages/x/api/charts/sankey-plot.js
+++ b/docs/pages/x/api/charts/sankey-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './sankey-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesSankeyPlot } from './types.sankey-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['classes', 'onLinkClick', 'onNodeClick'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/sankey-plot',
- false,
- /\.\/sankey-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/sankey-tooltip-content.js b/docs/pages/x/api/charts/sankey-tooltip-content.js
index 53ba3913272af..ec853433e74e4 100644
--- a/docs/pages/x/api/charts/sankey-tooltip-content.js
+++ b/docs/pages/x/api/charts/sankey-tooltip-content.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './sankey-tooltip-content.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesSankeyTooltipContent } from './types.sankey-tooltip-content';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['classes'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/sankey-tooltip-content',
- false,
- /\.\/sankey-tooltip-content.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/sankey-tooltip.js b/docs/pages/x/api/charts/sankey-tooltip.js
index a0b09c0531c0d..2e392e32a1510 100644
--- a/docs/pages/x/api/charts/sankey-tooltip.js
+++ b/docs/pages/x/api/charts/sankey-tooltip.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './sankey-tooltip.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesSankeyTooltip } from './types.sankey-tooltip';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['anchor', 'anchorEl', 'classes', 'component', 'components', 'componentsProps', 'container', 'disablePortal', 'keepMounted', 'modifiers', 'open', 'placement', 'popperOptions', 'popperRef', 'position', 'slotProps', 'slots', 'sx', 'transition', 'trigger'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/sankey-tooltip',
- false,
- /\.\/sankey-tooltip.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/scatter-chart-pro.js b/docs/pages/x/api/charts/scatter-chart-pro.js
index 81f7671153806..dbba788a478c2 100644
--- a/docs/pages/x/api/charts/scatter-chart-pro.js
+++ b/docs/pages/x/api/charts/scatter-chart-pro.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './scatter-chart-pro.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesScatterChartPro } from './types.scatter-chart-pro';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axesGap', 'axisHighlight', 'brushConfig', 'colors', 'dataset', 'desc', 'disableAxisListener', 'disableClosestPoint', 'disableHitArea', 'disableKeyboardNavigation', 'disableVoronoi', 'experimentalFeatures', 'grid', 'height', 'hiddenItems', 'hideLegend', 'highlightedItem', 'hitAreaRadius', 'id', 'initialHiddenItems', 'initialZoom', 'loading', 'localeText', 'margin', 'onAxisClick', 'onHiddenItemsChange', 'onHighlightChange', 'onItemClick', 'onTooltipAxisChange', 'onTooltipItemChange', 'onZoomChange', 'renderer', 'series', 'showToolbar', 'skipAnimation', 'slotProps', 'slots', 'title', 'tooltipAxis', 'tooltipItem', 'width', 'xAxis', 'yAxis', 'zAxis', 'zoomData', 'zoomInteractionConfig'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/scatter-chart-pro',
- false,
- /\.\/scatter-chart-pro.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/scatter-chart.js b/docs/pages/x/api/charts/scatter-chart.js
index 5ddd144abf5da..57cd59e9665c6 100644
--- a/docs/pages/x/api/charts/scatter-chart.js
+++ b/docs/pages/x/api/charts/scatter-chart.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './scatter-chart.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesScatterChart } from './types.scatter-chart';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['axesGap', 'axisHighlight', 'brushConfig', 'colors', 'dataset', 'desc', 'disableAxisListener', 'disableClosestPoint', 'disableHitArea', 'disableKeyboardNavigation', 'disableVoronoi', 'experimentalFeatures', 'grid', 'height', 'hiddenItems', 'hideLegend', 'highlightedItem', 'hitAreaRadius', 'id', 'initialHiddenItems', 'loading', 'localeText', 'margin', 'onAxisClick', 'onHiddenItemsChange', 'onHighlightChange', 'onItemClick', 'onTooltipAxisChange', 'onTooltipItemChange', 'renderer', 'series', 'showToolbar', 'skipAnimation', 'slotProps', 'slots', 'title', 'tooltipAxis', 'tooltipItem', 'width', 'xAxis', 'yAxis', 'zAxis'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/scatter-chart',
- false,
- /\.\/scatter-chart.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/scatter-plot.js b/docs/pages/x/api/charts/scatter-plot.js
index 378b80ad633ea..7b34bde18f1ed 100644
--- a/docs/pages/x/api/charts/scatter-plot.js
+++ b/docs/pages/x/api/charts/scatter-plot.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './scatter-plot.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesScatterPlot } from './types.scatter-plot';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['onItemClick', 'renderer', 'slotProps', 'slots'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/scatter-plot',
- false,
- /\.\/scatter-plot.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/scatter-series.js b/docs/pages/x/api/charts/scatter-series.js
index 7937761c60bfe..39747ba8b2adc 100644
--- a/docs/pages/x/api/charts/scatter-series.js
+++ b/docs/pages/x/api/charts/scatter-series.js
@@ -1,22 +1,12 @@
-import * as React from 'react';
-import InterfaceApiPage from 'docsx/src/modules/components/InterfaceApiPage';
-import layoutConfig from 'docsx/src/modules/utils/dataGridLayoutConfig';
-import mapApiPageTranslations from 'docsx/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './scatter-series.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesScatterSeries } from './types.scatter-series';
-export default function Page(props) {
- const { descriptions } = props;
- return (
-
- );
-}
+const allowedProps = [];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/',
- false,
- /\.\/scatter-series.*.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/scatter.js b/docs/pages/x/api/charts/scatter.js
index 0874ed1bad23d..70991b5f5911f 100644
--- a/docs/pages/x/api/charts/scatter.js
+++ b/docs/pages/x/api/charts/scatter.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './scatter.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesScatter } from './types.scatter';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['colorGetter', 'onItemClick'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/scatter',
- false,
- /\.\/scatter.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/spark-line-chart.js b/docs/pages/x/api/charts/spark-line-chart.js
index c8123524d34f5..b1a570b2ef7a0 100644
--- a/docs/pages/x/api/charts/spark-line-chart.js
+++ b/docs/pages/x/api/charts/spark-line-chart.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './spark-line-chart.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesSparkLineChart } from './types.spark-line-chart';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['area', 'baseline', 'brushConfig', 'clipAreaOffset', 'color', 'data', 'dataset', 'desc', 'disableAxisListener', 'disableClipping', 'disableHitArea', 'disableKeyboardNavigation', 'experimentalFeatures', 'height', 'hiddenItems', 'highlightedAxis', 'highlightedItem', 'hitAreaRadius', 'id', 'initialHiddenItems', 'localeText', 'margin', 'onAxisClick', 'onHiddenItemsChange', 'onHighlightChange', 'onHighlightedAxisChange', 'onItemClick', 'onTooltipAxisChange', 'onTooltipItemChange', 'plotType', 'showHighlight', 'showTooltip', 'skipAnimation', 'slotProps', 'slots', 'title', 'tooltipAxis', 'tooltipItem', 'valueFormatter', 'width', 'xAxis', 'yAxis'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/spark-line-chart',
- false,
- /\.\/spark-line-chart.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/toolbar-button.js b/docs/pages/x/api/charts/toolbar-button.js
index bc2bdd497e6dc..23087419292af 100644
--- a/docs/pages/x/api/charts/toolbar-button.js
+++ b/docs/pages/x/api/charts/toolbar-button.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './toolbar-button.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesToolbarButton } from './types.toolbar-button';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['render'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/toolbar-button',
- false,
- /\.\/toolbar-button.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/toolbar.js b/docs/pages/x/api/charts/toolbar.js
index 9ccb74f768e68..c71a1e12559a2 100644
--- a/docs/pages/x/api/charts/toolbar.js
+++ b/docs/pages/x/api/charts/toolbar.js
@@ -1,20 +1,12 @@
-import * as React from 'react';
-import ApiPage from 'docs/src/modules/components/ApiPage';
-import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
-import jsonPageContent from './toolbar.json';
+import { TypesPageShell } from 'docsx/src/modules/api-docs/TypesPageShell';
+import { TypesToolbar } from './types.toolbar';
-export default function Page(props) {
- const { descriptions } = props;
- return ;
-}
+const allowedProps = ['render'];
-export async function getStaticProps() {
- const req = require.context(
- 'docsx/translations/api-docs/charts/toolbar',
- false,
- /\.\/toolbar.*\.json$/,
+export default function Page() {
+ return (
+
+
+
);
- const descriptions = mapApiPageTranslations(req);
-
- return { props: { descriptions } };
}
diff --git a/docs/pages/x/api/charts/types.animated-area.md b/docs/pages/x/api/charts/types.animated-area.md
new file mode 100644
index 0000000000000..294d490591bac
--- /dev/null
+++ b/docs/pages/x/api/charts/types.animated-area.md
@@ -0,0 +1,1963 @@
+# Charts
+
+[//]: types.ts '<-- Autogenerated By (do not edit the following markdown directly), run: pnpm docs:validate pages/x/api/charts/types.animated-area.md'
+
+## API Reference
+
+### AnimatedArea
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Areas demonstration](https://mui.com/x/react-charts/areas-demo/)
+
+API:
+
+- [AreaElement API](https://mui.com/x/api/charts/animated-area/)
+
+**AnimatedArea Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :---------------------- | :------ | :--------------------------------- |
+| d\* | `string` | - | - |
+| ownerState\* | `AreaElementOwnerState` | - | - |
+| skipAnimation | `boolean` | `false` | If `true`, animations are skipped. |
+
+### AnimatedLine
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [AnimatedLine API](https://mui.com/x/api/charts/animated-line/)
+
+**AnimatedLine Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :---------------------- | :------ | :--------------------------------- |
+| d\* | `string` | - | - |
+| ownerState\* | `LineElementOwnerState` | - | - |
+| skipAnimation | `boolean` | `false` | If `true`, animations are skipped. |
+
+### AreaElement
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Areas demonstration](https://mui.com/x/react-charts/areas-demo/)
+
+API:
+
+- [AreaElement API](https://mui.com/x/api/charts/area-element/)
+
+**AreaElement Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :--------------------- | :------ | :-------------------------------------- |
+| classes | `Partial` | - | - |
+| color\* | `string` | - | - |
+| d\* | `string` | - | - |
+| gradientId | `string` | - | - |
+| seriesId\* | `string` | - | - |
+| skipAnimation | `boolean` | `false` | If `true`, animations are skipped. |
+| slotProps | `AreaElementSlotProps` | `{}` | The props used for each component slot. |
+| slots | `AreaElementSlots` | `{}` | Overridable component slots. |
+
+### AreaPlot
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Areas demonstration](https://mui.com/x/react-charts/areas-demo/)
+- [Stacking](https://mui.com/x/react-charts/stacking/)
+
+API:
+
+- [AreaPlot API](https://mui.com/x/api/charts/area-plot/)
+
+**AreaPlot Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :---------------------------------------------------------------------------------------------------- | :------ | :----------------------------------------------- |
+| onItemClick | `((event: React.MouseEvent, lineItemIdentifier: LineItemIdentifier) => void)` | - | Callback fired when a line area item is clicked. |
+| skipAnimation | `boolean` | `false` | If `true`, animations are skipped. |
+| slotProps | `AreaElementSlotProps` | `{}` | The props used for each component slot. |
+| slots | `AreaElementSlots` | `{}` | Overridable component slots. |
+
+### FocusedLineMark
+
+### LineChart
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [LineChart API](https://mui.com/x/api/charts/line-chart/)
+
+**LineChart Props:**
+
+| Prop | Type | Default | Description |
+| :------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :-------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| apiRef | `React.RefObject \| undefined>` | - | - |
+| axesGap | `number` | `0` | A gap added between axes when multiple axes are rendered on the same side of the chart. |
+| axisHighlight | `ChartsAxisHighlightProps` | `{ x: 'line' }` | The configuration of axes highlight. |
+| brushConfig | `BrushConfig` | - | Configuration for the brush interaction. |
+| colors | `ChartsColorPalette` | `rainbowSurgePalette` | Color palette used to colorize multiple series. |
+| dataset | `DatasetElementType[]` | - | An array of objects that can be used to populate series and axes data using their `dataKey` property. |
+| desc | `string` | - | The description of the chart.
Used to provide an accessible description for the chart. |
+| disableAxisListener | `boolean` | `false` | If `true`, the charts will not listen to the mouse move event.
It might break interactive features, but will improve performance. |
+| disableKeyboardNavigation | `boolean` | - | If `true`, disables keyboard navigation for the chart. |
+| disableLineItemHighlight | `boolean` | - | If `true`, render the line highlight item. |
+| experimentalFeatures | `ChartExperimentalFeatures` | - | Options to enable features planned for the next major. |
+| grid | `AnimatedAreaProps` | - | Option to display a cartesian grid in the background. |
+| height | `number` | - | The height of the chart in px. If not defined, it takes the height of the parent element. |
+| hiddenItems | `({ type?: 'line'; seriesId?: string; dataIndex?: number; seriesId: string; type: 'line' } \| VisibilityIdentifier<'line'>)[]` | - | List of hidden series and/or items. Different chart types use different keys. |
+| hideLegend | `boolean` | - | If `true`, the legend is not rendered. |
+| highlightedAxis | `AxisItemIdentifier[]` | - | The controlled axis highlight.
Identified by the axis id, and data index. |
+| highlightedItem | `{ type: 'line'; seriesId: string; dataIndex?: number } \| Omit<{ type: 'line'; seriesId: string; dataIndex?: number }, 'type'> \| null` | - | The highlighted item.
Used when the highlight is controlled. |
+| initialHiddenItems | `({ type?: 'line'; seriesId?: string; dataIndex?: number; seriesId: string; type: 'line' } \| VisibilityIdentifier<'line'>)[]` | - | List of initially hidden series and/or items.
Used for uncontrolled state. Different chart types use different keys. |
+| loading | `boolean` | `false` | If `true`, a loading overlay is displayed. |
+| localeText | `Partial` | - | Localized text for chart components. |
+| margin | `Partial \| number` | - | The margin between the SVG and the drawing area.
It's used for leaving some space for extra information such as the x- and y-axis or legend. Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`. |
+| onAreaClick | `((event: React.MouseEvent, lineItemIdentifier: LineItemIdentifier) => void)` | - | Callback fired when an area element is clicked. |
+| onAxisClick | `((event: MouseEvent, data: ChartsAxisData \| null) => void)` | - | The function called for onClick events.
The second argument contains information about all line/bar elements at the current mouse position. |
+| onHiddenItemsChange | `((hiddenItems: ({ type?: 'line'; seriesId?: string; dataIndex?: number; seriesId: string; type: 'line' })[]) => void)` | - | Callback fired when any hidden identifiers change. |
+| onHighlightChange | `((highlightedItem: { type: 'line'; seriesId: string; dataIndex?: number } \| null) => void)` | - | The callback fired when the highlighted item changes. |
+| onHighlightedAxisChange | `((axisItems: AxisItemIdentifier[]) => void)` | - | The function called when the pointer position corresponds to a new axis data item.
This update can either be caused by a pointer movement, or an axis update.
In case of multiple axes, the function is called if at least one axis is updated.
The argument contains the identifier for all axes with a `data` property. |
+| onLineClick | `((event: React.MouseEvent, lineItemIdentifier: LineItemIdentifier) => void)` | - | Callback fired when a line element is clicked. |
+| onMarkClick | `((event: React.MouseEvent, lineItemIdentifier: LineItemIdentifier) => void)` | - | Callback fired when a mark element is clicked. |
+| onTooltipAxisChange | `((axisItems: AxisItemIdentifier[]) => void)` | - | The function called when the pointer position corresponds to a new axis data item.
This update can either be caused by a pointer movement, or an axis update.
In case of multiple axes, the function is called if at least one axis is updated.
The argument contains the identifier for all axes with a `data` property. |
+| onTooltipItemChange | `((tooltipItem: LineItemIdentifier \| null) => void)` | - | The callback fired when the tooltip item changes. |
+| series\* | `LineSeries[]` | - | The series to display in the line chart.
An array of \[\[LineSeries]] objects. |
+| seriesConfig | `{ line: ChartSeriesTypeConfig<'line'> }` | - | The configuration for the series types.
This is used to define how each series type should be processed, colored, and displayed. |
+| showToolbar | `boolean` | `false` | If true, shows the default chart toolbar. |
+| skipAnimation | `boolean` | `false` | If `true`, animations are skipped. |
+| slotProps | `LineChartSlotProps` | `{}` | The props used for each component slot. |
+| slots | `LineChartSlots` | `{}` | Overridable component slots. |
+| sx | `SxProps` | - | - |
+| theme | `'light' \| 'dark'` | - | - |
+| title | `string` | - | The title of the chart.
Used to provide an accessible label for the chart. |
+| tooltipAxis | `AxisItemIdentifier[]` | - | The controlled axis tooltip.
Identified by the axis id, and data index. |
+| tooltipItem | `LineItemIdentifier \| Omit \| null` | - | The tooltip item.
Used when the tooltip is controlled. |
+| width | `number` | - | The width of the chart in px. If not defined, it takes the width of the parent element. |
+| xAxis | `(MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'>)[]` | - | The configuration of the x-axes.
If not provided, a default axis config is used.
An array of \[\[AxisConfig]] objects. |
+| yAxis | `(MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'>)[]` | - | The configuration of the y-axes.
If not provided, a default axis config is used.
An array of \[\[AxisConfig]] objects. |
+| id | `string` | - | This prop is used to help implement the accessibility logic.
If you don't provide this prop. It falls back to a randomly generated id. |
+| children | `React.ReactNode` | - | - |
+| className | `string` | - | - |
+
+**`hiddenItems` Prop Example:**
+
+```ts
+[
+ {
+ type: 'pie',
+ seriesId: 'series-1',
+ dataIndex: 3,
+ },
+ {
+ type: 'line',
+ seriesId: 'series-2',
+ },
+];
+```
+
+**`initialHiddenItems` Prop Example:**
+
+```ts
+[
+ {
+ type: 'pie',
+ seriesId: 'series-1',
+ dataIndex: 3,
+ },
+ {
+ type: 'line',
+ seriesId: 'series-2',
+ },
+];
+```
+
+### LineElement
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [LineElement API](https://mui.com/x/api/charts/line-element/)
+
+**LineElement Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :--------------------- | :------ | :-------------------------------------- |
+| hidden | `boolean` | - | If `true`, the line is hidden. |
+| classes | `Partial` | - | - |
+| color\* | `string` | - | - |
+| d\* | `string` | - | - |
+| gradientId | `string` | - | - |
+| seriesId\* | `string` | - | - |
+| skipAnimation | `boolean` | `false` | If `true`, animations are skipped. |
+| slotProps | `LineElementSlotProps` | `{}` | The props used for each component slot. |
+| slots | `LineElementSlots` | `{}` | Overridable component slots. |
+
+### LineHighlightElement
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [LineHighlightElement API](https://mui.com/x/api/charts/line-highlight-element/)
+
+**LineHighlightElement Props:**
+
+| Prop | Type | Default | Description |
+| :--------- | :------------------------------------------------------------------------------ | :------ | :---------- |
+| color\* | `string` | - | - |
+| seriesId\* | `string` | - | - |
+| shape\* | `'circle' \| 'cross' \| 'diamond' \| 'square' \| 'star' \| 'triangle' \| 'wye'` | - | - |
+| x\* | `number` | - | - |
+| y\* | `number` | - | - |
+
+### LineHighlightPlot
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [LineHighlightPlot API](https://mui.com/x/api/charts/line-highlight-plot/)
+
+**LineHighlightPlot Props:**
+
+| Prop | Type | Default | Description |
+| :-------- | :--------------------------- | :------ | :-------------------------------------- |
+| slotProps | `LineHighlightPlotSlotProps` | `{}` | The props used for each component slot. |
+| slots | `LineHighlightPlotSlots` | `{}` | Overridable component slots. |
+
+### LinePlot
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [LinePlot API](https://mui.com/x/api/charts/line-plot/)
+
+**LinePlot Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :---------------------------------------------------------------------------------------------------- | :------ | :------------------------------------------ |
+| onItemClick | `((event: React.MouseEvent, lineItemIdentifier: LineItemIdentifier) => void)` | - | Callback fired when a line item is clicked. |
+| skipAnimation | `boolean` | `false` | If `true`, animations are skipped. |
+| slotProps | `LineElementSlotProps` | `{}` | The props used for each component slot. |
+| slots | `LineElementSlots` | `{}` | Overridable component slots. |
+
+### MarkElement
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [MarkElement API](https://mui.com/x/api/charts/mark-element/)
+
+**MarkElement Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :------------------------------------------------------------------------------ | :------ | :-------------------------------------------------- |
+| hidden | `boolean` | `false` | If `true`, the marker is hidden. |
+| classes | `Partial` | - | - |
+| dataIndex\* | `number` | - | The index to the element in the series' data array. |
+| isFaded | `boolean` | `false` | If `true`, the marker is faded. |
+| isHighlighted | `boolean` | `false` | If `true`, the marker is highlighted. |
+| seriesId\* | `string` | - | - |
+| shape\* | `'circle' \| 'cross' \| 'diamond' \| 'square' \| 'star' \| 'triangle' \| 'wye'` | - | The shape of the marker. |
+| skipAnimation | `boolean` | - | - |
+
+### MarkPlot
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [MarkPlot API](https://mui.com/x/api/charts/mark-plot/)
+
+**MarkPlot Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :---------------------------------------------------------------------------------------------------- | :------ | :----------------------------------------------- |
+| onItemClick | `((event: React.MouseEvent, lineItemIdentifier: LineItemIdentifier) => void)` | - | Callback fired when a line mark item is clicked. |
+| skipAnimation | `boolean` | - | - |
+| slotProps | `MarkPlotSlotProps` | `{}` | The props used for each component slot. |
+| slots | `MarkPlotSlots` | `{}` | Overridable component slots. |
+
+## Additional Types
+
+### AnimatedAreaProps
+
+```typescript
+type AnimatedAreaProps = {
+ ownerState: AreaElementOwnerState;
+ d: string;
+ /**
+ * If `true`, animations are skipped.
+ * @default false
+ */
+ skipAnimation?: boolean;
+};
+```
+
+### AnimatedLineProps
+
+```typescript
+type AnimatedLineProps = {
+ ownerState: LineElementOwnerState;
+ d: string;
+ /**
+ * If `true`, animations are skipped.
+ * @default false
+ */
+ skipAnimation?: boolean;
+};
+```
+
+### AreaElementOwnerState
+
+```typescript
+type AreaElementOwnerState = {
+ seriesId: string;
+ color: string;
+ gradientId?: string;
+ isFaded: boolean;
+ isHighlighted: boolean;
+ classes?: Partial;
+};
+```
+
+### AreaElementProps
+
+```typescript
+type AreaElementProps = {
+ d: string;
+ /**
+ * The props used for each component slot.
+ * @default {}
+ */
+ slotProps?: AreaElementSlotProps;
+ /**
+ * Overridable component slots.
+ * @default {}
+ */
+ slots?: AreaElementSlots;
+ color: string;
+ classes?: Partial;
+ seriesId: string;
+ gradientId?: string;
+ /**
+ * If `true`, animations are skipped.
+ * @default false
+ */
+ skipAnimation?: boolean;
+};
+```
+
+### AreaElementSlotProps
+
+```typescript
+type AreaElementSlotProps = {
+ area?: SlotComponentPropsFromProps;
+};
+```
+
+### AreaElementSlots
+
+```typescript
+type AreaElementSlots = {
+ /**
+ * The component that renders the area.
+ * @default AnimatedArea
+ */
+ area?: React.JSXElementConstructor;
+};
+```
+
+### AreaPlotProps
+
+```typescript
+type AreaPlotProps = {
+ /** Callback fired when a line area item is clicked. */
+ onItemClick?: (
+ event: React.MouseEvent,
+ lineItemIdentifier: LineItemIdentifier,
+ ) => void;
+ /**
+ * Overridable component slots.
+ * @default {}
+ */
+ slots?: AreaElementSlots;
+ /**
+ * The props used for each component slot.
+ * @default {}
+ */
+ slotProps?: AreaElementSlotProps;
+ /**
+ * If `true`, animations are skipped.
+ * @default false
+ */
+ skipAnimation?: boolean;
+};
+```
+
+### AreaPlotSlotProps
+
+```typescript
+type AreaPlotSlotProps = {
+ area?: SlotComponentPropsFromProps;
+};
+```
+
+### AreaPlotSlots
+
+```typescript
+type AreaPlotSlots = {
+ /**
+ * The component that renders the area.
+ * @default AnimatedArea
+ */
+ area?: React.JSXElementConstructor;
+};
+```
+
+### LINE_CHART_PLUGINS
+
+```typescript
+type LINE_CHART_PLUGINS = [
+ ChartPlugin,
+ ChartPlugin,
+ ChartPlugin>,
+ ChartPlugin,
+ ChartPlugin>,
+ ChartPlugin>,
+ ChartPlugin>,
+ ChartPlugin,
+];
+```
+
+### LineChartPluginSignatures
+
+```typescript
+type LineChartPluginSignatures = LineChartPluginSignatures;
+```
+
+### LineChartProps
+
+````typescript
+type LineChartProps = {
+ /**
+ * The series to display in the line chart.
+ * An array of [[LineSeries]] objects.
+ */
+ series: LineSeries[];
+ /** Option to display a cartesian grid in the background. */
+ grid?: Pick;
+ /**
+ * The configuration of axes highlight.
+ * @default { x: 'line' }
+ * @see
+ */
+ axisHighlight?: ChartsAxisHighlightProps;
+ /** If `true`, the legend is not rendered. */
+ hideLegend?: boolean;
+ /** If `true`, render the line highlight item. */
+ disableLineItemHighlight?: boolean;
+ /**
+ * Overridable component slots.
+ * @default {}
+ */
+ slots?: LineChartSlots;
+ /**
+ * The props used for each component slot.
+ * @default {}
+ */
+ slotProps?: LineChartSlotProps;
+ /** Callback fired when an area element is clicked. */
+ onAreaClick?: (
+ event: React.MouseEvent,
+ lineItemIdentifier: LineItemIdentifier,
+ ) => void;
+ /** Callback fired when a line element is clicked. */
+ onLineClick?: (
+ event: React.MouseEvent,
+ lineItemIdentifier: LineItemIdentifier,
+ ) => void;
+ /** Callback fired when a mark element is clicked. */
+ onMarkClick?: (
+ event: React.MouseEvent,
+ lineItemIdentifier: LineItemIdentifier,
+ ) => void;
+ /**
+ * If `true`, animations are skipped.
+ * @default false
+ */
+ skipAnimation?: boolean;
+ /**
+ * If true, shows the default chart toolbar.
+ * @default false
+ */
+ showToolbar?: boolean;
+ /** The width of the chart in px. If not defined, it takes the width of the parent element. */
+ width?: number;
+ className?: string;
+ /** The height of the chart in px. If not defined, it takes the height of the parent element. */
+ height?: number;
+ /**
+ * This prop is used to help implement the accessibility logic.
+ * If you don't provide this prop. It falls back to a randomly generated id.
+ */
+ id?: string;
+ children?: React.ReactNode;
+ /**
+ * The margin between the SVG and the drawing area.
+ * It's used for leaving some space for extra information such as the x- and y-axis or legend.
+ *
+ * Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
+ */
+ margin?: Partial | number;
+ sx?: SxProps;
+ /**
+ * The configuration of the x-axes.
+ * If not provided, a default axis config is used.
+ * An array of [[AxisConfig]] objects.
+ */
+ xAxis?: (
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ )[];
+ /**
+ * The configuration of the y-axes.
+ * If not provided, a default axis config is used.
+ * An array of [[AxisConfig]] objects.
+ */
+ yAxis?: (
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ )[];
+ /**
+ * The title of the chart.
+ * Used to provide an accessible label for the chart.
+ */
+ title?: string;
+ /**
+ * The description of the chart.
+ * Used to provide an accessible description for the chart.
+ */
+ desc?: string;
+ apiRef?: React.RefObject | undefined>;
+ /**
+ * The configuration for the series types.
+ * This is used to define how each series type should be processed, colored, and displayed.
+ */
+ seriesConfig?: { line: ChartSeriesTypeConfig<'line'> };
+ /** Localized text for chart components. */
+ localeText?: Partial;
+ /**
+ * A gap added between axes when multiple axes are rendered on the same side of the chart.
+ * @default 0
+ */
+ axesGap?: number;
+ /** Options to enable features planned for the next major. */
+ experimentalFeatures?: ChartExperimentalFeatures;
+ /** An array of objects that can be used to populate series and axes data using their `dataKey` property. */
+ dataset?: DatasetElementType[];
+ /**
+ * Color palette used to colorize multiple series.
+ * @default rainbowSurgePalette
+ */
+ colors?: ChartsColorPalette;
+ theme?: 'light' | 'dark';
+ /** Configuration for the brush interaction. */
+ brushConfig?: BrushConfig;
+ /**
+ * The tooltip item.
+ * Used when the tooltip is controlled.
+ */
+ tooltipItem?: LineItemIdentifier | Omit | null;
+ /** The callback fired when the tooltip item changes. */
+ onTooltipItemChange?: (tooltipItem: LineItemIdentifier | null) => void;
+ /**
+ * The function called for onClick events.
+ * The second argument contains information about all line/bar elements at the current mouse position.
+ */
+ onAxisClick?: (event: MouseEvent, data: ChartsAxisData | null) => void;
+ /**
+ * The function called when the pointer position corresponds to a new axis data item.
+ * This update can either be caused by a pointer movement, or an axis update.
+ * In case of multiple axes, the function is called if at least one axis is updated.
+ * The argument contains the identifier for all axes with a `data` property.
+ */
+ onHighlightedAxisChange?: (axisItems: AxisItemIdentifier[]) => void;
+ /**
+ * The controlled axis highlight.
+ * Identified by the axis id, and data index.
+ */
+ highlightedAxis?: AxisItemIdentifier[];
+ /**
+ * The function called when the pointer position corresponds to a new axis data item.
+ * This update can either be caused by a pointer movement, or an axis update.
+ * In case of multiple axes, the function is called if at least one axis is updated.
+ * The argument contains the identifier for all axes with a `data` property.
+ */
+ onTooltipAxisChange?: (axisItems: AxisItemIdentifier[]) => void;
+ /**
+ * The controlled axis tooltip.
+ * Identified by the axis id, and data index.
+ */
+ tooltipAxis?: AxisItemIdentifier[];
+ /**
+ * If `true`, the charts will not listen to the mouse move event.
+ * It might break interactive features, but will improve performance.
+ * @default false
+ */
+ disableAxisListener?: boolean;
+ /**
+ * The highlighted item.
+ * Used when the highlight is controlled.
+ */
+ highlightedItem?:
+ | { type: 'line'; seriesId: string; dataIndex?: number }
+ | Omit<{ type: 'line'; seriesId: string; dataIndex?: number }, 'type'>
+ | null;
+ /** The callback fired when the highlighted item changes. */
+ onHighlightChange?: (
+ highlightedItem: { type: 'line'; seriesId: string; dataIndex?: number } | null,
+ ) => void;
+ /** Callback fired when any hidden identifiers change. */
+ onHiddenItemsChange?: (
+ hiddenItems: {
+ type?: 'line';
+ seriesId?: string;
+ dataIndex?: number;
+ seriesId: string;
+ type: 'line';
+ }[],
+ ) => void;
+ /**
+ * List of hidden series and/or items.
+ *
+ * Different chart types use different keys.
+ * @example
+ * ```ts
+ * [
+ * {
+ * type: 'pie',
+ * seriesId: 'series-1',
+ * dataIndex: 3,
+ * },
+ * {
+ * type: 'line',
+ * seriesId: 'series-2',
+ * }
+ * ]
+ * ```
+ */
+ hiddenItems?: (
+ | { type?: 'line'; seriesId?: string; dataIndex?: number; seriesId: string; type: 'line' }
+ | VisibilityIdentifier<'line'>
+ )[];
+ /**
+ * List of initially hidden series and/or items.
+ * Used for uncontrolled state.
+ *
+ * Different chart types use different keys.
+ * @example
+ * ```ts
+ * [
+ * {
+ * type: 'pie',
+ * seriesId: 'series-1',
+ * dataIndex: 3,
+ * },
+ * {
+ * type: 'line',
+ * seriesId: 'series-2',
+ * }
+ * ]
+ * ```
+ */
+ initialHiddenItems?: (
+ | { type?: 'line'; seriesId?: string; dataIndex?: number; seriesId: string; type: 'line' }
+ | VisibilityIdentifier<'line'>
+ )[];
+ /** If `true`, disables keyboard navigation for the chart. */
+ disableKeyboardNavigation?: boolean;
+ /**
+ * If `true`, a loading overlay is displayed.
+ * @default false
+ */
+ loading?: boolean;
+};
+````
+
+### LineChartSlotProps
+
+```typescript
+type LineChartSlotProps = {
+ axisLine?: Partial>;
+ axisTick?: Partial>;
+ axisTickLabel?: Partial;
+ axisLabel?: Partial;
+ xAxis?: Partial;
+ yAxis?: Partial;
+ area?: SlotComponentPropsFromProps;
+ line?: SlotComponentPropsFromProps;
+ mark?: Partial;
+ lineHighlight?: SlotComponentPropsFromProps;
+ legend?: (
+ | {
+ onItemClick?: (
+ event: React.MouseEvent,
+ legendItem: SeriesLegendItemContext,
+ index: number,
+ ) => void;
+ classes?: Partial;
+ toggleVisibilityOnClick?: boolean;
+ }
+ | {
+ minLabel?: string | LabelFormatter;
+ maxLabel?: string | LabelFormatter;
+ gradientId?: string;
+ labelPosition?: 'start' | 'end' | 'extremes';
+ reverse?: boolean;
+ classes?: Partial;
+ axisDirection?: 'x' | 'y' | 'z';
+ axisId?: AxisId;
+ rotateGradient?: boolean;
+ thickness?: number;
+ }
+ | {
+ labelFormatter?: (params: PiecewiseLabelFormatterParams) => string | null;
+ labelPosition?: 'start' | 'end' | 'extremes' | 'inline-start' | 'inline-end';
+ onItemClick?: (
+ event: React.MouseEvent,
+ legendItem: PiecewiseColorLegendItemContext,
+ index: number,
+ ) => void;
+ classes?: Partial;
+ axisDirection?: 'x' | 'y' | 'z';
+ axisId?: AxisId;
+ markType?: ChartsLabelMarkType;
+ }
+ ) & {
+ /**
+ * The direction of the legend layout.
+ * The default depends on the chart.
+ */
+ direction?: Direction;
+ className?: string;
+ sx?: SxProps;
+ tabIndex?: number;
+ /**
+ * The position of the legend in relation to the chart.
+ * This property is only passed to the Chart components, e.g. `ScatterChart`, and not the slots themselves.
+ * If customization is needed, simply use the composition pattern.
+ */
+ position?: Position;
+ };
+ loadingOverlay?: SlotComponentPropsFromProps;
+ noDataOverlay?: SlotComponentPropsFromProps;
+ /**
+ * Custom component for the tooltip popper.
+ * @default ChartsTooltipRoot
+ */
+ tooltip?: Partial<
+ (
+ | { anchor?: 'pointer' | 'node'; trigger?: 'item'; sort?: undefined }
+ | { anchor?: 'pointer' | 'chart'; trigger?: 'axis'; sort?: 'none' | 'desc' | 'asc' }
+ | { anchor?: 'pointer'; trigger?: 'none'; sort?: undefined }
+ ) & {
+ position?: 'top' | 'bottom' | 'left' | 'right';
+ classes?: Partial;
+ slots?: ChartsTooltipContainerSlots;
+ slotProps?: ChartsTooltipContainerSlotProps;
+ }
+ >;
+ /** Props for the toolbar component. */
+ toolbar?: Partial;
+ baseButton?: React.DOMAttributes & {
+ className?: string;
+ style?: React.CSSProperties;
+ } & { ref?: React.Ref; id?: string; disabled?: boolean; tabIndex?: number };
+ baseIconButton?: React.DOMAttributes & {
+ className?: string;
+ style?: React.CSSProperties;
+ } & {
+ ref?: React.Ref;
+ id?: string;
+ disabled?: boolean;
+ tabIndex?: number;
+ size?: 'small' | 'medium' | 'large';
+ };
+};
+```
+
+### LineChartSlots
+
+```typescript
+type LineChartSlots = {
+ /**
+ * Custom component for the axis main line.
+ * @default 'line'
+ */
+ axisLine?: React.JSXElementConstructor>;
+ /**
+ * Custom component for the axis tick.
+ * @default 'line'
+ */
+ axisTick?: React.JSXElementConstructor>;
+ /**
+ * Custom component for tick label.
+ * @default ChartsText
+ */
+ axisTickLabel?: React.JSXElementConstructor;
+ /**
+ * Custom component for axis label.
+ * @default ChartsText
+ */
+ axisLabel?: React.JSXElementConstructor;
+ /**
+ * Custom component for the x-axis.
+ * @default ChartsXAxis
+ */
+ xAxis?: React.JSXElementConstructor;
+ /**
+ * Custom component for the y-axis.
+ * @default ChartsYAxis
+ */
+ yAxis?: React.JSXElementConstructor;
+ /**
+ * The component that renders the area.
+ * @default AnimatedArea
+ */
+ area?: React.JSXElementConstructor;
+ /**
+ * The component that renders the line.
+ * @default LineElementPath
+ */
+ line?: React.JSXElementConstructor;
+ mark?: React.JSXElementConstructor;
+ lineHighlight?: React.JSXElementConstructor;
+ /**
+ * Custom rendering of the legend.
+ * @default ChartsLegend
+ */
+ legend?:
+ | React.JSXElementConstructor
+ | React.JSXElementConstructor
+ | React.JSXElementConstructor;
+ /**
+ * Overlay component rendered when the chart is in a loading state.
+ * @default ChartsLoadingOverlay
+ */
+ loadingOverlay?: React.ElementType<
+ CommonOverlayProps,
+ | 'symbol'
+ | 'object'
+ | 'area'
+ | 'line'
+ | 'mark'
+ | 'style'
+ | 'slot'
+ | 'clipPath'
+ | 'filter'
+ | 'mask'
+ | 'path'
+ | 'marker'
+ | 'label'
+ | 'text'
+ | 'p'
+ | 'a'
+ | 'abbr'
+ | 'address'
+ | 'article'
+ | 'aside'
+ | 'audio'
+ | 'b'
+ | 'base'
+ | 'bdi'
+ | 'bdo'
+ | 'big'
+ | 'blockquote'
+ | 'body'
+ | 'br'
+ | 'button'
+ | 'canvas'
+ | 'caption'
+ | 'center'
+ | 'cite'
+ | 'code'
+ | 'col'
+ | 'colgroup'
+ | 'data'
+ | 'datalist'
+ | 'dd'
+ | 'del'
+ | 'details'
+ | 'dfn'
+ | 'dialog'
+ | 'div'
+ | 'dl'
+ | 'dt'
+ | 'em'
+ | 'embed'
+ | 'fieldset'
+ | 'figcaption'
+ | 'figure'
+ | 'footer'
+ | 'form'
+ | 'h1'
+ | 'h2'
+ | 'h3'
+ | 'h4'
+ | 'h5'
+ | 'h6'
+ | 'head'
+ | 'header'
+ | 'hgroup'
+ | 'hr'
+ | 'html'
+ | 'i'
+ | 'iframe'
+ | 'img'
+ | 'input'
+ | 'ins'
+ | 'kbd'
+ | 'keygen'
+ | 'legend'
+ | 'li'
+ | 'link'
+ | 'main'
+ | 'map'
+ | 'menu'
+ | 'menuitem'
+ | 'meta'
+ | 'meter'
+ | 'nav'
+ | 'noindex'
+ | 'noscript'
+ | 'ol'
+ | 'optgroup'
+ | 'option'
+ | 'output'
+ | 'param'
+ | 'picture'
+ | 'pre'
+ | 'progress'
+ | 'q'
+ | 'rp'
+ | 'rt'
+ | 'ruby'
+ | 's'
+ | 'samp'
+ | 'search'
+ | 'script'
+ | 'section'
+ | 'select'
+ | 'small'
+ | 'source'
+ | 'span'
+ | 'strong'
+ | 'sub'
+ | 'summary'
+ | 'sup'
+ | 'table'
+ | 'template'
+ | 'tbody'
+ | 'td'
+ | 'textarea'
+ | 'tfoot'
+ | 'th'
+ | 'thead'
+ | 'time'
+ | 'title'
+ | 'tr'
+ | 'track'
+ | 'u'
+ | 'ul'
+ | 'var'
+ | 'video'
+ | 'wbr'
+ | 'webview'
+ | 'svg'
+ | 'animate'
+ | 'animateMotion'
+ | 'animateTransform'
+ | 'circle'
+ | 'defs'
+ | 'desc'
+ | 'ellipse'
+ | 'feBlend'
+ | 'feColorMatrix'
+ | 'feComponentTransfer'
+ | 'feComposite'
+ | 'feConvolveMatrix'
+ | 'feDiffuseLighting'
+ | 'feDisplacementMap'
+ | 'feDistantLight'
+ | 'feDropShadow'
+ | 'feFlood'
+ | 'feFuncA'
+ | 'feFuncB'
+ | 'feFuncG'
+ | 'feFuncR'
+ | 'feGaussianBlur'
+ | 'feImage'
+ | 'feMerge'
+ | 'feMergeNode'
+ | 'feMorphology'
+ | 'feOffset'
+ | 'fePointLight'
+ | 'feSpecularLighting'
+ | 'feSpotLight'
+ | 'feTile'
+ | 'feTurbulence'
+ | 'foreignObject'
+ | 'g'
+ | 'image'
+ | 'linearGradient'
+ | 'metadata'
+ | 'mpath'
+ | 'pattern'
+ | 'polygon'
+ | 'polyline'
+ | 'radialGradient'
+ | 'rect'
+ | 'set'
+ | 'stop'
+ | 'switch'
+ | 'textPath'
+ | 'tspan'
+ | 'use'
+ | 'view'
+ >;
+ /**
+ * Overlay component rendered when the chart has no data to display.
+ * @default ChartsNoDataOverlay
+ */
+ noDataOverlay?: React.ElementType<
+ CommonOverlayProps,
+ | 'symbol'
+ | 'object'
+ | 'area'
+ | 'line'
+ | 'mark'
+ | 'style'
+ | 'slot'
+ | 'clipPath'
+ | 'filter'
+ | 'mask'
+ | 'path'
+ | 'marker'
+ | 'label'
+ | 'text'
+ | 'p'
+ | 'a'
+ | 'abbr'
+ | 'address'
+ | 'article'
+ | 'aside'
+ | 'audio'
+ | 'b'
+ | 'base'
+ | 'bdi'
+ | 'bdo'
+ | 'big'
+ | 'blockquote'
+ | 'body'
+ | 'br'
+ | 'button'
+ | 'canvas'
+ | 'caption'
+ | 'center'
+ | 'cite'
+ | 'code'
+ | 'col'
+ | 'colgroup'
+ | 'data'
+ | 'datalist'
+ | 'dd'
+ | 'del'
+ | 'details'
+ | 'dfn'
+ | 'dialog'
+ | 'div'
+ | 'dl'
+ | 'dt'
+ | 'em'
+ | 'embed'
+ | 'fieldset'
+ | 'figcaption'
+ | 'figure'
+ | 'footer'
+ | 'form'
+ | 'h1'
+ | 'h2'
+ | 'h3'
+ | 'h4'
+ | 'h5'
+ | 'h6'
+ | 'head'
+ | 'header'
+ | 'hgroup'
+ | 'hr'
+ | 'html'
+ | 'i'
+ | 'iframe'
+ | 'img'
+ | 'input'
+ | 'ins'
+ | 'kbd'
+ | 'keygen'
+ | 'legend'
+ | 'li'
+ | 'link'
+ | 'main'
+ | 'map'
+ | 'menu'
+ | 'menuitem'
+ | 'meta'
+ | 'meter'
+ | 'nav'
+ | 'noindex'
+ | 'noscript'
+ | 'ol'
+ | 'optgroup'
+ | 'option'
+ | 'output'
+ | 'param'
+ | 'picture'
+ | 'pre'
+ | 'progress'
+ | 'q'
+ | 'rp'
+ | 'rt'
+ | 'ruby'
+ | 's'
+ | 'samp'
+ | 'search'
+ | 'script'
+ | 'section'
+ | 'select'
+ | 'small'
+ | 'source'
+ | 'span'
+ | 'strong'
+ | 'sub'
+ | 'summary'
+ | 'sup'
+ | 'table'
+ | 'template'
+ | 'tbody'
+ | 'td'
+ | 'textarea'
+ | 'tfoot'
+ | 'th'
+ | 'thead'
+ | 'time'
+ | 'title'
+ | 'tr'
+ | 'track'
+ | 'u'
+ | 'ul'
+ | 'var'
+ | 'video'
+ | 'wbr'
+ | 'webview'
+ | 'svg'
+ | 'animate'
+ | 'animateMotion'
+ | 'animateTransform'
+ | 'circle'
+ | 'defs'
+ | 'desc'
+ | 'ellipse'
+ | 'feBlend'
+ | 'feColorMatrix'
+ | 'feComponentTransfer'
+ | 'feComposite'
+ | 'feConvolveMatrix'
+ | 'feDiffuseLighting'
+ | 'feDisplacementMap'
+ | 'feDistantLight'
+ | 'feDropShadow'
+ | 'feFlood'
+ | 'feFuncA'
+ | 'feFuncB'
+ | 'feFuncG'
+ | 'feFuncR'
+ | 'feGaussianBlur'
+ | 'feImage'
+ | 'feMerge'
+ | 'feMergeNode'
+ | 'feMorphology'
+ | 'feOffset'
+ | 'fePointLight'
+ | 'feSpecularLighting'
+ | 'feSpotLight'
+ | 'feTile'
+ | 'feTurbulence'
+ | 'foreignObject'
+ | 'g'
+ | 'image'
+ | 'linearGradient'
+ | 'metadata'
+ | 'mpath'
+ | 'pattern'
+ | 'polygon'
+ | 'polyline'
+ | 'radialGradient'
+ | 'rect'
+ | 'set'
+ | 'stop'
+ | 'switch'
+ | 'textPath'
+ | 'tspan'
+ | 'use'
+ | 'view'
+ >;
+ /**
+ * Custom component for the tooltip popper.
+ * @default ChartsTooltipRoot
+ */
+ tooltip?: React.ElementType<
+ (
+ | { anchor?: 'pointer' | 'node'; trigger?: 'item'; sort?: undefined }
+ | { anchor?: 'pointer' | 'chart'; trigger?: 'axis'; sort?: 'none' | 'desc' | 'asc' }
+ | { anchor?: 'pointer'; trigger?: 'none'; sort?: undefined }
+ ) & {
+ position?: 'top' | 'bottom' | 'left' | 'right';
+ classes?: Partial;
+ slots?: ChartsTooltipContainerSlots;
+ slotProps?: ChartsTooltipContainerSlotProps;
+ },
+ | 'symbol'
+ | 'object'
+ | 'area'
+ | 'line'
+ | 'mark'
+ | 'style'
+ | 'slot'
+ | 'clipPath'
+ | 'filter'
+ | 'mask'
+ | 'path'
+ | 'marker'
+ | 'label'
+ | 'text'
+ | 'p'
+ | 'a'
+ | 'abbr'
+ | 'address'
+ | 'article'
+ | 'aside'
+ | 'audio'
+ | 'b'
+ | 'base'
+ | 'bdi'
+ | 'bdo'
+ | 'big'
+ | 'blockquote'
+ | 'body'
+ | 'br'
+ | 'button'
+ | 'canvas'
+ | 'caption'
+ | 'center'
+ | 'cite'
+ | 'code'
+ | 'col'
+ | 'colgroup'
+ | 'data'
+ | 'datalist'
+ | 'dd'
+ | 'del'
+ | 'details'
+ | 'dfn'
+ | 'dialog'
+ | 'div'
+ | 'dl'
+ | 'dt'
+ | 'em'
+ | 'embed'
+ | 'fieldset'
+ | 'figcaption'
+ | 'figure'
+ | 'footer'
+ | 'form'
+ | 'h1'
+ | 'h2'
+ | 'h3'
+ | 'h4'
+ | 'h5'
+ | 'h6'
+ | 'head'
+ | 'header'
+ | 'hgroup'
+ | 'hr'
+ | 'html'
+ | 'i'
+ | 'iframe'
+ | 'img'
+ | 'input'
+ | 'ins'
+ | 'kbd'
+ | 'keygen'
+ | 'legend'
+ | 'li'
+ | 'link'
+ | 'main'
+ | 'map'
+ | 'menu'
+ | 'menuitem'
+ | 'meta'
+ | 'meter'
+ | 'nav'
+ | 'noindex'
+ | 'noscript'
+ | 'ol'
+ | 'optgroup'
+ | 'option'
+ | 'output'
+ | 'param'
+ | 'picture'
+ | 'pre'
+ | 'progress'
+ | 'q'
+ | 'rp'
+ | 'rt'
+ | 'ruby'
+ | 's'
+ | 'samp'
+ | 'search'
+ | 'script'
+ | 'section'
+ | 'select'
+ | 'small'
+ | 'source'
+ | 'span'
+ | 'strong'
+ | 'sub'
+ | 'summary'
+ | 'sup'
+ | 'table'
+ | 'template'
+ | 'tbody'
+ | 'td'
+ | 'textarea'
+ | 'tfoot'
+ | 'th'
+ | 'thead'
+ | 'time'
+ | 'title'
+ | 'tr'
+ | 'track'
+ | 'u'
+ | 'ul'
+ | 'var'
+ | 'video'
+ | 'wbr'
+ | 'webview'
+ | 'svg'
+ | 'animate'
+ | 'animateMotion'
+ | 'animateTransform'
+ | 'circle'
+ | 'defs'
+ | 'desc'
+ | 'ellipse'
+ | 'feBlend'
+ | 'feColorMatrix'
+ | 'feComponentTransfer'
+ | 'feComposite'
+ | 'feConvolveMatrix'
+ | 'feDiffuseLighting'
+ | 'feDisplacementMap'
+ | 'feDistantLight'
+ | 'feDropShadow'
+ | 'feFlood'
+ | 'feFuncA'
+ | 'feFuncB'
+ | 'feFuncG'
+ | 'feFuncR'
+ | 'feGaussianBlur'
+ | 'feImage'
+ | 'feMerge'
+ | 'feMergeNode'
+ | 'feMorphology'
+ | 'feOffset'
+ | 'fePointLight'
+ | 'feSpecularLighting'
+ | 'feSpotLight'
+ | 'feTile'
+ | 'feTurbulence'
+ | 'foreignObject'
+ | 'g'
+ | 'image'
+ | 'linearGradient'
+ | 'metadata'
+ | 'mpath'
+ | 'pattern'
+ | 'polygon'
+ | 'polyline'
+ | 'radialGradient'
+ | 'rect'
+ | 'set'
+ | 'stop'
+ | 'switch'
+ | 'textPath'
+ | 'tspan'
+ | 'use'
+ | 'view'
+ >;
+ /**
+ * Custom component for the toolbar.
+ * @default ChartsToolbar
+ */
+ toolbar?: React.ElementType<
+ ChartsToolbarProps,
+ | 'symbol'
+ | 'object'
+ | 'area'
+ | 'line'
+ | 'mark'
+ | 'style'
+ | 'slot'
+ | 'clipPath'
+ | 'filter'
+ | 'mask'
+ | 'path'
+ | 'marker'
+ | 'label'
+ | 'text'
+ | 'p'
+ | 'a'
+ | 'abbr'
+ | 'address'
+ | 'article'
+ | 'aside'
+ | 'audio'
+ | 'b'
+ | 'base'
+ | 'bdi'
+ | 'bdo'
+ | 'big'
+ | 'blockquote'
+ | 'body'
+ | 'br'
+ | 'button'
+ | 'canvas'
+ | 'caption'
+ | 'center'
+ | 'cite'
+ | 'code'
+ | 'col'
+ | 'colgroup'
+ | 'data'
+ | 'datalist'
+ | 'dd'
+ | 'del'
+ | 'details'
+ | 'dfn'
+ | 'dialog'
+ | 'div'
+ | 'dl'
+ | 'dt'
+ | 'em'
+ | 'embed'
+ | 'fieldset'
+ | 'figcaption'
+ | 'figure'
+ | 'footer'
+ | 'form'
+ | 'h1'
+ | 'h2'
+ | 'h3'
+ | 'h4'
+ | 'h5'
+ | 'h6'
+ | 'head'
+ | 'header'
+ | 'hgroup'
+ | 'hr'
+ | 'html'
+ | 'i'
+ | 'iframe'
+ | 'img'
+ | 'input'
+ | 'ins'
+ | 'kbd'
+ | 'keygen'
+ | 'legend'
+ | 'li'
+ | 'link'
+ | 'main'
+ | 'map'
+ | 'menu'
+ | 'menuitem'
+ | 'meta'
+ | 'meter'
+ | 'nav'
+ | 'noindex'
+ | 'noscript'
+ | 'ol'
+ | 'optgroup'
+ | 'option'
+ | 'output'
+ | 'param'
+ | 'picture'
+ | 'pre'
+ | 'progress'
+ | 'q'
+ | 'rp'
+ | 'rt'
+ | 'ruby'
+ | 's'
+ | 'samp'
+ | 'search'
+ | 'script'
+ | 'section'
+ | 'select'
+ | 'small'
+ | 'source'
+ | 'span'
+ | 'strong'
+ | 'sub'
+ | 'summary'
+ | 'sup'
+ | 'table'
+ | 'template'
+ | 'tbody'
+ | 'td'
+ | 'textarea'
+ | 'tfoot'
+ | 'th'
+ | 'thead'
+ | 'time'
+ | 'title'
+ | 'tr'
+ | 'track'
+ | 'u'
+ | 'ul'
+ | 'var'
+ | 'video'
+ | 'wbr'
+ | 'webview'
+ | 'svg'
+ | 'animate'
+ | 'animateMotion'
+ | 'animateTransform'
+ | 'circle'
+ | 'defs'
+ | 'desc'
+ | 'ellipse'
+ | 'feBlend'
+ | 'feColorMatrix'
+ | 'feComponentTransfer'
+ | 'feComposite'
+ | 'feConvolveMatrix'
+ | 'feDiffuseLighting'
+ | 'feDisplacementMap'
+ | 'feDistantLight'
+ | 'feDropShadow'
+ | 'feFlood'
+ | 'feFuncA'
+ | 'feFuncB'
+ | 'feFuncG'
+ | 'feFuncR'
+ | 'feGaussianBlur'
+ | 'feImage'
+ | 'feMerge'
+ | 'feMergeNode'
+ | 'feMorphology'
+ | 'feOffset'
+ | 'fePointLight'
+ | 'feSpecularLighting'
+ | 'feSpotLight'
+ | 'feTile'
+ | 'feTurbulence'
+ | 'foreignObject'
+ | 'g'
+ | 'image'
+ | 'linearGradient'
+ | 'metadata'
+ | 'mpath'
+ | 'pattern'
+ | 'polygon'
+ | 'polyline'
+ | 'radialGradient'
+ | 'rect'
+ | 'set'
+ | 'stop'
+ | 'switch'
+ | 'textPath'
+ | 'tspan'
+ | 'use'
+ | 'view'
+ >;
+ baseButton?: React.ComponentType;
+ baseIconButton?: React.ComponentType;
+};
+```
+
+### lineClasses
+
+```typescript
+type lineClasses = {
+ /** Styles applied to the area element. */
+ area: string;
+ /** Styles applied to the line element. */
+ line: string;
+ /** Styles applied to the mark element. */
+ mark: string;
+ /** Styles applied to a mark element when it is animated. */
+ markAnimate: string;
+ /** Styles applied to the highlight element. */
+ highlight: string;
+ /** Styles applied to the AreaPlot root element. */
+ areaPlot: string;
+ /** Styles applied to the LinePlot root element. */
+ linePlot: string;
+ /** Styles applied to the MarkPlot root element. */
+ markPlot: string;
+};
+```
+
+### LineClasses
+
+```typescript
+type LineClasses = {
+ /** Styles applied to the area element. */
+ area: string;
+ /** Styles applied to the line element. */
+ line: string;
+ /** Styles applied to the mark element. */
+ mark: string;
+ /** Styles applied to a mark element when it is animated. */
+ markAnimate: string;
+ /** Styles applied to the highlight element. */
+ highlight: string;
+ /** Styles applied to the AreaPlot root element. */
+ areaPlot: string;
+ /** Styles applied to the LinePlot root element. */
+ linePlot: string;
+ /** Styles applied to the MarkPlot root element. */
+ markPlot: string;
+};
+```
+
+### LineClassKey
+
+```typescript
+type LineClassKey =
+ | 'area'
+ | 'line'
+ | 'mark'
+ | 'markAnimate'
+ | 'highlight'
+ | 'areaPlot'
+ | 'linePlot'
+ | 'markPlot';
+```
+
+### LineElementOwnerState
+
+```typescript
+type LineElementOwnerState = {
+ seriesId: string;
+ color: string;
+ gradientId?: string;
+ isFaded: boolean;
+ isHighlighted: boolean;
+ classes?: Partial;
+ /** If `true`, the line is hidden. */
+ hidden?: boolean;
+};
+```
+
+### LineElementProps
+
+```typescript
+type LineElementProps = {
+ d: string;
+ /** If `true`, the line is hidden. */
+ hidden?: boolean;
+ /**
+ * The props used for each component slot.
+ * @default {}
+ */
+ slotProps?: LineElementSlotProps;
+ /**
+ * Overridable component slots.
+ * @default {}
+ */
+ slots?: LineElementSlots;
+ color: string;
+ classes?: Partial;
+ seriesId: string;
+ gradientId?: string;
+ /**
+ * If `true`, animations are skipped.
+ * @default false
+ */
+ skipAnimation?: boolean;
+};
+```
+
+### LineElementSlotProps
+
+```typescript
+type LineElementSlotProps = {
+ line?: SlotComponentPropsFromProps;
+};
+```
+
+### LineElementSlots
+
+```typescript
+type LineElementSlots = {
+ /**
+ * The component that renders the line.
+ * @default LineElementPath
+ */
+ line?: React.JSXElementConstructor;
+};
+```
+
+### LineHighlightElementProps
+
+```typescript
+type LineHighlightElementProps = (
+ | { shape: 'circle' }
+ | { shape: 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye' }
+) & { seriesId: string; color: string; x: number; y: number };
+```
+
+### LineHighlightPlotProps
+
+```typescript
+type LineHighlightPlotProps = {
+ /**
+ * Overridable component slots.
+ * @default {}
+ */
+ slots?: LineHighlightPlotSlots;
+ /**
+ * The props used for each component slot.
+ * @default {}
+ */
+ slotProps?: LineHighlightPlotSlotProps;
+};
+```
+
+### LineHighlightPlotSlotProps
+
+```typescript
+type LineHighlightPlotSlotProps = {
+ lineHighlight?: SlotComponentPropsFromProps;
+};
+```
+
+### LineHighlightPlotSlots
+
+```typescript
+type LineHighlightPlotSlots = {
+ lineHighlight?: React.JSXElementConstructor;
+};
+```
+
+### LinePlotProps
+
+```typescript
+type LinePlotProps = {
+ /** Callback fired when a line item is clicked. */
+ onItemClick?: (
+ event: React.MouseEvent,
+ lineItemIdentifier: LineItemIdentifier,
+ ) => void;
+ /**
+ * Overridable component slots.
+ * @default {}
+ */
+ slots?: LineElementSlots;
+ /**
+ * The props used for each component slot.
+ * @default {}
+ */
+ slotProps?: LineElementSlotProps;
+ /**
+ * If `true`, animations are skipped.
+ * @default false
+ */
+ skipAnimation?: boolean;
+};
+```
+
+### LinePlotSlotProps
+
+```typescript
+type LinePlotSlotProps = {
+ line?: SlotComponentPropsFromProps;
+};
+```
+
+### LinePlotSlots
+
+```typescript
+type LinePlotSlots = {
+ /**
+ * The component that renders the line.
+ * @default LineElementPath
+ */
+ line?: React.JSXElementConstructor;
+};
+```
+
+### LineSeries
+
+```typescript
+type LineSeries = MakeOptional;
+```
+
+### MarkElementProps
+
+```typescript
+type MarkElementProps = {
+ classes?: Partial;
+ seriesId: string;
+ skipAnimation?: boolean;
+ /**
+ * If `true`, the marker is hidden.
+ * @default false
+ */
+ hidden?: boolean;
+ /**
+ * If `true`, animations are skipped.
+ * @default false
+ */
+ skipAnimation?: boolean;
+ /** The shape of the marker. */
+ shape: 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye';
+ /** The index to the element in the series' data array. */
+ dataIndex: number;
+ /**
+ * If `true`, the marker is faded.
+ * @default false
+ */
+ isFaded?: boolean;
+ /**
+ * If `true`, the marker is highlighted.
+ * @default false
+ */
+ isHighlighted?: boolean;
+};
+```
+
+### MarkPlotProps
+
+```typescript
+type MarkPlotProps = {
+ /**
+ * Overridable component slots.
+ * @default {}
+ */
+ slots?: MarkPlotSlots;
+ /**
+ * The props used for each component slot.
+ * @default {}
+ */
+ slotProps?: MarkPlotSlotProps;
+ /** Callback fired when a line mark item is clicked. */
+ onItemClick?: (
+ event: React.MouseEvent,
+ lineItemIdentifier: LineItemIdentifier,
+ ) => void;
+ skipAnimation?: boolean;
+};
+```
+
+### MarkPlotSlotProps
+
+```typescript
+type MarkPlotSlotProps = { mark?: Partial };
+```
+
+### MarkPlotSlots
+
+```typescript
+type MarkPlotSlots = { mark?: React.JSXElementConstructor };
+```
+
+## External Types
+
+### Direction
+
+```typescript
+type Direction = 'vertical' | 'horizontal';
+```
+
+### LabelFormatter
+
+```typescript
+type LabelFormatter = (params: { value: number | Date; formattedValue: string }) => string;
+```
+
+### AxisId
+
+```typescript
+type AxisId = string | number;
+```
+
+### ChartPlugin
+
+```typescript
+type ChartPlugin = (options: {
+ instance: unknown;
+ params: unknown;
+ store: { state: unknown; subscribe: unknown; getSnapshot: unknown; use: unknown };
+ plugins: unknown;
+}) => unknown;
+```
diff --git a/docs/pages/x/api/charts/types.animated-area.ts b/docs/pages/x/api/charts/types.animated-area.ts
new file mode 100644
index 0000000000000..3221e7331920f
--- /dev/null
+++ b/docs/pages/x/api/charts/types.animated-area.ts
@@ -0,0 +1,4 @@
+import { AnimatedArea } from '@mui/x-charts/LineChart';
+import { createTypes } from 'docsx/src/modules/api-docs/createTypes';
+
+export const TypesAnimatedArea = createTypes(import.meta.url, AnimatedArea);
diff --git a/docs/pages/x/api/charts/types.animated-line.md b/docs/pages/x/api/charts/types.animated-line.md
new file mode 100644
index 0000000000000..29f51135ed81f
--- /dev/null
+++ b/docs/pages/x/api/charts/types.animated-line.md
@@ -0,0 +1,1963 @@
+# Charts
+
+[//]: types.ts '<-- Autogenerated By (do not edit the following markdown directly), run: pnpm docs:validate pages/x/api/charts/types.animated-line.md'
+
+## API Reference
+
+### AnimatedArea
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Areas demonstration](https://mui.com/x/react-charts/areas-demo/)
+
+API:
+
+- [AreaElement API](https://mui.com/x/api/charts/animated-area/)
+
+**AnimatedArea Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :---------------------- | :------ | :--------------------------------- |
+| d\* | `string` | - | - |
+| ownerState\* | `AreaElementOwnerState` | - | - |
+| skipAnimation | `boolean` | `false` | If `true`, animations are skipped. |
+
+### AnimatedLine
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [AnimatedLine API](https://mui.com/x/api/charts/animated-line/)
+
+**AnimatedLine Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :---------------------- | :------ | :--------------------------------- |
+| d\* | `string` | - | - |
+| ownerState\* | `LineElementOwnerState` | - | - |
+| skipAnimation | `boolean` | `false` | If `true`, animations are skipped. |
+
+### AreaElement
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Areas demonstration](https://mui.com/x/react-charts/areas-demo/)
+
+API:
+
+- [AreaElement API](https://mui.com/x/api/charts/area-element/)
+
+**AreaElement Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :--------------------- | :------ | :-------------------------------------- |
+| classes | `Partial` | - | - |
+| color\* | `string` | - | - |
+| d\* | `string` | - | - |
+| gradientId | `string` | - | - |
+| seriesId\* | `string` | - | - |
+| skipAnimation | `boolean` | `false` | If `true`, animations are skipped. |
+| slotProps | `AreaElementSlotProps` | `{}` | The props used for each component slot. |
+| slots | `AreaElementSlots` | `{}` | Overridable component slots. |
+
+### AreaPlot
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Areas demonstration](https://mui.com/x/react-charts/areas-demo/)
+- [Stacking](https://mui.com/x/react-charts/stacking/)
+
+API:
+
+- [AreaPlot API](https://mui.com/x/api/charts/area-plot/)
+
+**AreaPlot Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :---------------------------------------------------------------------------------------------------- | :------ | :----------------------------------------------- |
+| onItemClick | `((event: React.MouseEvent, lineItemIdentifier: LineItemIdentifier) => void)` | - | Callback fired when a line area item is clicked. |
+| skipAnimation | `boolean` | `false` | If `true`, animations are skipped. |
+| slotProps | `AreaElementSlotProps` | `{}` | The props used for each component slot. |
+| slots | `AreaElementSlots` | `{}` | Overridable component slots. |
+
+### FocusedLineMark
+
+### LineChart
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [LineChart API](https://mui.com/x/api/charts/line-chart/)
+
+**LineChart Props:**
+
+| Prop | Type | Default | Description |
+| :------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :-------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| apiRef | `React.RefObject \| undefined>` | - | - |
+| axesGap | `number` | `0` | A gap added between axes when multiple axes are rendered on the same side of the chart. |
+| axisHighlight | `ChartsAxisHighlightProps` | `{ x: 'line' }` | The configuration of axes highlight. |
+| brushConfig | `BrushConfig` | - | Configuration for the brush interaction. |
+| colors | `ChartsColorPalette` | `rainbowSurgePalette` | Color palette used to colorize multiple series. |
+| dataset | `DatasetElementType[]` | - | An array of objects that can be used to populate series and axes data using their `dataKey` property. |
+| desc | `string` | - | The description of the chart.
Used to provide an accessible description for the chart. |
+| disableAxisListener | `boolean` | `false` | If `true`, the charts will not listen to the mouse move event.
It might break interactive features, but will improve performance. |
+| disableKeyboardNavigation | `boolean` | - | If `true`, disables keyboard navigation for the chart. |
+| disableLineItemHighlight | `boolean` | - | If `true`, render the line highlight item. |
+| experimentalFeatures | `ChartExperimentalFeatures` | - | Options to enable features planned for the next major. |
+| grid | `AnimatedAreaProps` | - | Option to display a cartesian grid in the background. |
+| height | `number` | - | The height of the chart in px. If not defined, it takes the height of the parent element. |
+| hiddenItems | `({ type?: 'line'; seriesId?: string; dataIndex?: number; seriesId: string; type: 'line' } \| VisibilityIdentifier<'line'>)[]` | - | List of hidden series and/or items. Different chart types use different keys. |
+| hideLegend | `boolean` | - | If `true`, the legend is not rendered. |
+| highlightedAxis | `AxisItemIdentifier[]` | - | The controlled axis highlight.
Identified by the axis id, and data index. |
+| highlightedItem | `{ type: 'line'; seriesId: string; dataIndex?: number } \| Omit<{ type: 'line'; seriesId: string; dataIndex?: number }, 'type'> \| null` | - | The highlighted item.
Used when the highlight is controlled. |
+| initialHiddenItems | `({ type?: 'line'; seriesId?: string; dataIndex?: number; seriesId: string; type: 'line' } \| VisibilityIdentifier<'line'>)[]` | - | List of initially hidden series and/or items.
Used for uncontrolled state. Different chart types use different keys. |
+| loading | `boolean` | `false` | If `true`, a loading overlay is displayed. |
+| localeText | `Partial` | - | Localized text for chart components. |
+| margin | `Partial \| number` | - | The margin between the SVG and the drawing area.
It's used for leaving some space for extra information such as the x- and y-axis or legend. Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`. |
+| onAreaClick | `((event: React.MouseEvent, lineItemIdentifier: LineItemIdentifier) => void)` | - | Callback fired when an area element is clicked. |
+| onAxisClick | `((event: MouseEvent, data: ChartsAxisData \| null) => void)` | - | The function called for onClick events.
The second argument contains information about all line/bar elements at the current mouse position. |
+| onHiddenItemsChange | `((hiddenItems: ({ type?: 'line'; seriesId?: string; dataIndex?: number; seriesId: string; type: 'line' })[]) => void)` | - | Callback fired when any hidden identifiers change. |
+| onHighlightChange | `((highlightedItem: { type: 'line'; seriesId: string; dataIndex?: number } \| null) => void)` | - | The callback fired when the highlighted item changes. |
+| onHighlightedAxisChange | `((axisItems: AxisItemIdentifier[]) => void)` | - | The function called when the pointer position corresponds to a new axis data item.
This update can either be caused by a pointer movement, or an axis update.
In case of multiple axes, the function is called if at least one axis is updated.
The argument contains the identifier for all axes with a `data` property. |
+| onLineClick | `((event: React.MouseEvent, lineItemIdentifier: LineItemIdentifier) => void)` | - | Callback fired when a line element is clicked. |
+| onMarkClick | `((event: React.MouseEvent, lineItemIdentifier: LineItemIdentifier) => void)` | - | Callback fired when a mark element is clicked. |
+| onTooltipAxisChange | `((axisItems: AxisItemIdentifier[]) => void)` | - | The function called when the pointer position corresponds to a new axis data item.
This update can either be caused by a pointer movement, or an axis update.
In case of multiple axes, the function is called if at least one axis is updated.
The argument contains the identifier for all axes with a `data` property. |
+| onTooltipItemChange | `((tooltipItem: LineItemIdentifier \| null) => void)` | - | The callback fired when the tooltip item changes. |
+| series\* | `LineSeries[]` | - | The series to display in the line chart.
An array of \[\[LineSeries]] objects. |
+| seriesConfig | `{ line: ChartSeriesTypeConfig<'line'> }` | - | The configuration for the series types.
This is used to define how each series type should be processed, colored, and displayed. |
+| showToolbar | `boolean` | `false` | If true, shows the default chart toolbar. |
+| skipAnimation | `boolean` | `false` | If `true`, animations are skipped. |
+| slotProps | `LineChartSlotProps` | `{}` | The props used for each component slot. |
+| slots | `LineChartSlots` | `{}` | Overridable component slots. |
+| sx | `SxProps` | - | - |
+| theme | `'light' \| 'dark'` | - | - |
+| title | `string` | - | The title of the chart.
Used to provide an accessible label for the chart. |
+| tooltipAxis | `AxisItemIdentifier[]` | - | The controlled axis tooltip.
Identified by the axis id, and data index. |
+| tooltipItem | `LineItemIdentifier \| Omit \| null` | - | The tooltip item.
Used when the tooltip is controlled. |
+| width | `number` | - | The width of the chart in px. If not defined, it takes the width of the parent element. |
+| xAxis | `(MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'>)[]` | - | The configuration of the x-axes.
If not provided, a default axis config is used.
An array of \[\[AxisConfig]] objects. |
+| yAxis | `(MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'> \| MakeOptional, 'id'>)[]` | - | The configuration of the y-axes.
If not provided, a default axis config is used.
An array of \[\[AxisConfig]] objects. |
+| id | `string` | - | This prop is used to help implement the accessibility logic.
If you don't provide this prop. It falls back to a randomly generated id. |
+| children | `React.ReactNode` | - | - |
+| className | `string` | - | - |
+
+**`hiddenItems` Prop Example:**
+
+```ts
+[
+ {
+ type: 'pie',
+ seriesId: 'series-1',
+ dataIndex: 3,
+ },
+ {
+ type: 'line',
+ seriesId: 'series-2',
+ },
+];
+```
+
+**`initialHiddenItems` Prop Example:**
+
+```ts
+[
+ {
+ type: 'pie',
+ seriesId: 'series-1',
+ dataIndex: 3,
+ },
+ {
+ type: 'line',
+ seriesId: 'series-2',
+ },
+];
+```
+
+### LineElement
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [LineElement API](https://mui.com/x/api/charts/line-element/)
+
+**LineElement Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :--------------------- | :------ | :-------------------------------------- |
+| hidden | `boolean` | - | If `true`, the line is hidden. |
+| classes | `Partial` | - | - |
+| color\* | `string` | - | - |
+| d\* | `string` | - | - |
+| gradientId | `string` | - | - |
+| seriesId\* | `string` | - | - |
+| skipAnimation | `boolean` | `false` | If `true`, animations are skipped. |
+| slotProps | `LineElementSlotProps` | `{}` | The props used for each component slot. |
+| slots | `LineElementSlots` | `{}` | Overridable component slots. |
+
+### LineHighlightElement
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [LineHighlightElement API](https://mui.com/x/api/charts/line-highlight-element/)
+
+**LineHighlightElement Props:**
+
+| Prop | Type | Default | Description |
+| :--------- | :------------------------------------------------------------------------------ | :------ | :---------- |
+| color\* | `string` | - | - |
+| seriesId\* | `string` | - | - |
+| shape\* | `'circle' \| 'cross' \| 'diamond' \| 'square' \| 'star' \| 'triangle' \| 'wye'` | - | - |
+| x\* | `number` | - | - |
+| y\* | `number` | - | - |
+
+### LineHighlightPlot
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [LineHighlightPlot API](https://mui.com/x/api/charts/line-highlight-plot/)
+
+**LineHighlightPlot Props:**
+
+| Prop | Type | Default | Description |
+| :-------- | :--------------------------- | :------ | :-------------------------------------- |
+| slotProps | `LineHighlightPlotSlotProps` | `{}` | The props used for each component slot. |
+| slots | `LineHighlightPlotSlots` | `{}` | Overridable component slots. |
+
+### LinePlot
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [LinePlot API](https://mui.com/x/api/charts/line-plot/)
+
+**LinePlot Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :---------------------------------------------------------------------------------------------------- | :------ | :------------------------------------------ |
+| onItemClick | `((event: React.MouseEvent, lineItemIdentifier: LineItemIdentifier) => void)` | - | Callback fired when a line item is clicked. |
+| skipAnimation | `boolean` | `false` | If `true`, animations are skipped. |
+| slotProps | `LineElementSlotProps` | `{}` | The props used for each component slot. |
+| slots | `LineElementSlots` | `{}` | Overridable component slots. |
+
+### MarkElement
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [MarkElement API](https://mui.com/x/api/charts/mark-element/)
+
+**MarkElement Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :------------------------------------------------------------------------------ | :------ | :-------------------------------------------------- |
+| hidden | `boolean` | `false` | If `true`, the marker is hidden. |
+| classes | `Partial` | - | - |
+| dataIndex\* | `number` | - | The index to the element in the series' data array. |
+| isFaded | `boolean` | `false` | If `true`, the marker is faded. |
+| isHighlighted | `boolean` | `false` | If `true`, the marker is highlighted. |
+| seriesId\* | `string` | - | - |
+| shape\* | `'circle' \| 'cross' \| 'diamond' \| 'square' \| 'star' \| 'triangle' \| 'wye'` | - | The shape of the marker. |
+| skipAnimation | `boolean` | - | - |
+
+### MarkPlot
+
+Demos:
+
+- [Lines](https://mui.com/x/react-charts/lines/)
+- [Line demonstration](https://mui.com/x/react-charts/line-demo/)
+
+API:
+
+- [MarkPlot API](https://mui.com/x/api/charts/mark-plot/)
+
+**MarkPlot Props:**
+
+| Prop | Type | Default | Description |
+| :------------ | :---------------------------------------------------------------------------------------------------- | :------ | :----------------------------------------------- |
+| onItemClick | `((event: React.MouseEvent, lineItemIdentifier: LineItemIdentifier) => void)` | - | Callback fired when a line mark item is clicked. |
+| skipAnimation | `boolean` | - | - |
+| slotProps | `MarkPlotSlotProps` | `{}` | The props used for each component slot. |
+| slots | `MarkPlotSlots` | `{}` | Overridable component slots. |
+
+## Additional Types
+
+### AnimatedAreaProps
+
+```typescript
+type AnimatedAreaProps = {
+ ownerState: AreaElementOwnerState;
+ d: string;
+ /**
+ * If `true`, animations are skipped.
+ * @default false
+ */
+ skipAnimation?: boolean;
+};
+```
+
+### AnimatedLineProps
+
+```typescript
+type AnimatedLineProps = {
+ ownerState: LineElementOwnerState;
+ d: string;
+ /**
+ * If `true`, animations are skipped.
+ * @default false
+ */
+ skipAnimation?: boolean;
+};
+```
+
+### AreaElementOwnerState
+
+```typescript
+type AreaElementOwnerState = {
+ seriesId: string;
+ color: string;
+ gradientId?: string;
+ isFaded: boolean;
+ isHighlighted: boolean;
+ classes?: Partial;
+};
+```
+
+### AreaElementProps
+
+```typescript
+type AreaElementProps = {
+ d: string;
+ /**
+ * The props used for each component slot.
+ * @default {}
+ */
+ slotProps?: AreaElementSlotProps;
+ /**
+ * Overridable component slots.
+ * @default {}
+ */
+ slots?: AreaElementSlots;
+ color: string;
+ classes?: Partial;
+ seriesId: string;
+ gradientId?: string;
+ /**
+ * If `true`, animations are skipped.
+ * @default false
+ */
+ skipAnimation?: boolean;
+};
+```
+
+### AreaElementSlotProps
+
+```typescript
+type AreaElementSlotProps = {
+ area?: SlotComponentPropsFromProps;
+};
+```
+
+### AreaElementSlots
+
+```typescript
+type AreaElementSlots = {
+ /**
+ * The component that renders the area.
+ * @default AnimatedArea
+ */
+ area?: React.JSXElementConstructor;
+};
+```
+
+### AreaPlotProps
+
+```typescript
+type AreaPlotProps = {
+ /** Callback fired when a line area item is clicked. */
+ onItemClick?: (
+ event: React.MouseEvent,
+ lineItemIdentifier: LineItemIdentifier,
+ ) => void;
+ /**
+ * Overridable component slots.
+ * @default {}
+ */
+ slots?: AreaElementSlots;
+ /**
+ * The props used for each component slot.
+ * @default {}
+ */
+ slotProps?: AreaElementSlotProps;
+ /**
+ * If `true`, animations are skipped.
+ * @default false
+ */
+ skipAnimation?: boolean;
+};
+```
+
+### AreaPlotSlotProps
+
+```typescript
+type AreaPlotSlotProps = {
+ area?: SlotComponentPropsFromProps;
+};
+```
+
+### AreaPlotSlots
+
+```typescript
+type AreaPlotSlots = {
+ /**
+ * The component that renders the area.
+ * @default AnimatedArea
+ */
+ area?: React.JSXElementConstructor;
+};
+```
+
+### LINE_CHART_PLUGINS
+
+```typescript
+type LINE_CHART_PLUGINS = [
+ ChartPlugin,
+ ChartPlugin,
+ ChartPlugin>,
+ ChartPlugin,
+ ChartPlugin>,
+ ChartPlugin>,
+ ChartPlugin>,
+ ChartPlugin,
+];
+```
+
+### LineChartPluginSignatures
+
+```typescript
+type LineChartPluginSignatures = LineChartPluginSignatures;
+```
+
+### LineChartProps
+
+````typescript
+type LineChartProps = {
+ /**
+ * The series to display in the line chart.
+ * An array of [[LineSeries]] objects.
+ */
+ series: LineSeries[];
+ /** Option to display a cartesian grid in the background. */
+ grid?: Pick;
+ /**
+ * The configuration of axes highlight.
+ * @default { x: 'line' }
+ * @see
+ */
+ axisHighlight?: ChartsAxisHighlightProps;
+ /** If `true`, the legend is not rendered. */
+ hideLegend?: boolean;
+ /** If `true`, render the line highlight item. */
+ disableLineItemHighlight?: boolean;
+ /**
+ * Overridable component slots.
+ * @default {}
+ */
+ slots?: LineChartSlots;
+ /**
+ * The props used for each component slot.
+ * @default {}
+ */
+ slotProps?: LineChartSlotProps;
+ /** Callback fired when an area element is clicked. */
+ onAreaClick?: (
+ event: React.MouseEvent,
+ lineItemIdentifier: LineItemIdentifier,
+ ) => void;
+ /** Callback fired when a line element is clicked. */
+ onLineClick?: (
+ event: React.MouseEvent,
+ lineItemIdentifier: LineItemIdentifier,
+ ) => void;
+ /** Callback fired when a mark element is clicked. */
+ onMarkClick?: (
+ event: React.MouseEvent,
+ lineItemIdentifier: LineItemIdentifier,
+ ) => void;
+ /**
+ * If `true`, animations are skipped.
+ * @default false
+ */
+ skipAnimation?: boolean;
+ /**
+ * If true, shows the default chart toolbar.
+ * @default false
+ */
+ showToolbar?: boolean;
+ /** The width of the chart in px. If not defined, it takes the width of the parent element. */
+ width?: number;
+ className?: string;
+ /** The height of the chart in px. If not defined, it takes the height of the parent element. */
+ height?: number;
+ /**
+ * This prop is used to help implement the accessibility logic.
+ * If you don't provide this prop. It falls back to a randomly generated id.
+ */
+ id?: string;
+ children?: React.ReactNode;
+ /**
+ * The margin between the SVG and the drawing area.
+ * It's used for leaving some space for extra information such as the x- and y-axis or legend.
+ *
+ * Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
+ */
+ margin?: Partial | number;
+ sx?: SxProps;
+ /**
+ * The configuration of the x-axes.
+ * If not provided, a default axis config is used.
+ * An array of [[AxisConfig]] objects.
+ */
+ xAxis?: (
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ )[];
+ /**
+ * The configuration of the y-axes.
+ * If not provided, a default axis config is used.
+ * An array of [[AxisConfig]] objects.
+ */
+ yAxis?: (
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ | MakeOptional, 'id'>
+ )[];
+ /**
+ * The title of the chart.
+ * Used to provide an accessible label for the chart.
+ */
+ title?: string;
+ /**
+ * The description of the chart.
+ * Used to provide an accessible description for the chart.
+ */
+ desc?: string;
+ apiRef?: React.RefObject | undefined>;
+ /**
+ * The configuration for the series types.
+ * This is used to define how each series type should be processed, colored, and displayed.
+ */
+ seriesConfig?: { line: ChartSeriesTypeConfig<'line'> };
+ /** Localized text for chart components. */
+ localeText?: Partial;
+ /**
+ * A gap added between axes when multiple axes are rendered on the same side of the chart.
+ * @default 0
+ */
+ axesGap?: number;
+ /** Options to enable features planned for the next major. */
+ experimentalFeatures?: ChartExperimentalFeatures;
+ /** An array of objects that can be used to populate series and axes data using their `dataKey` property. */
+ dataset?: DatasetElementType[];
+ /**
+ * Color palette used to colorize multiple series.
+ * @default rainbowSurgePalette
+ */
+ colors?: ChartsColorPalette;
+ theme?: 'light' | 'dark';
+ /** Configuration for the brush interaction. */
+ brushConfig?: BrushConfig;
+ /**
+ * The tooltip item.
+ * Used when the tooltip is controlled.
+ */
+ tooltipItem?: LineItemIdentifier | Omit | null;
+ /** The callback fired when the tooltip item changes. */
+ onTooltipItemChange?: (tooltipItem: LineItemIdentifier | null) => void;
+ /**
+ * The function called for onClick events.
+ * The second argument contains information about all line/bar elements at the current mouse position.
+ */
+ onAxisClick?: (event: MouseEvent, data: ChartsAxisData | null) => void;
+ /**
+ * The function called when the pointer position corresponds to a new axis data item.
+ * This update can either be caused by a pointer movement, or an axis update.
+ * In case of multiple axes, the function is called if at least one axis is updated.
+ * The argument contains the identifier for all axes with a `data` property.
+ */
+ onHighlightedAxisChange?: (axisItems: AxisItemIdentifier[]) => void;
+ /**
+ * The controlled axis highlight.
+ * Identified by the axis id, and data index.
+ */
+ highlightedAxis?: AxisItemIdentifier[];
+ /**
+ * The function called when the pointer position corresponds to a new axis data item.
+ * This update can either be caused by a pointer movement, or an axis update.
+ * In case of multiple axes, the function is called if at least one axis is updated.
+ * The argument contains the identifier for all axes with a `data` property.
+ */
+ onTooltipAxisChange?: (axisItems: AxisItemIdentifier[]) => void;
+ /**
+ * The controlled axis tooltip.
+ * Identified by the axis id, and data index.
+ */
+ tooltipAxis?: AxisItemIdentifier[];
+ /**
+ * If `true`, the charts will not listen to the mouse move event.
+ * It might break interactive features, but will improve performance.
+ * @default false
+ */
+ disableAxisListener?: boolean;
+ /**
+ * The highlighted item.
+ * Used when the highlight is controlled.
+ */
+ highlightedItem?:
+ | { type: 'line'; seriesId: string; dataIndex?: number }
+ | Omit<{ type: 'line'; seriesId: string; dataIndex?: number }, 'type'>
+ | null;
+ /** The callback fired when the highlighted item changes. */
+ onHighlightChange?: (
+ highlightedItem: { type: 'line'; seriesId: string; dataIndex?: number } | null,
+ ) => void;
+ /** Callback fired when any hidden identifiers change. */
+ onHiddenItemsChange?: (
+ hiddenItems: {
+ type?: 'line';
+ seriesId?: string;
+ dataIndex?: number;
+ seriesId: string;
+ type: 'line';
+ }[],
+ ) => void;
+ /**
+ * List of hidden series and/or items.
+ *
+ * Different chart types use different keys.
+ * @example
+ * ```ts
+ * [
+ * {
+ * type: 'pie',
+ * seriesId: 'series-1',
+ * dataIndex: 3,
+ * },
+ * {
+ * type: 'line',
+ * seriesId: 'series-2',
+ * }
+ * ]
+ * ```
+ */
+ hiddenItems?: (
+ | { type?: 'line'; seriesId?: string; dataIndex?: number; seriesId: string; type: 'line' }
+ | VisibilityIdentifier<'line'>
+ )[];
+ /**
+ * List of initially hidden series and/or items.
+ * Used for uncontrolled state.
+ *
+ * Different chart types use different keys.
+ * @example
+ * ```ts
+ * [
+ * {
+ * type: 'pie',
+ * seriesId: 'series-1',
+ * dataIndex: 3,
+ * },
+ * {
+ * type: 'line',
+ * seriesId: 'series-2',
+ * }
+ * ]
+ * ```
+ */
+ initialHiddenItems?: (
+ | { type?: 'line'; seriesId?: string; dataIndex?: number; seriesId: string; type: 'line' }
+ | VisibilityIdentifier<'line'>
+ )[];
+ /** If `true`, disables keyboard navigation for the chart. */
+ disableKeyboardNavigation?: boolean;
+ /**
+ * If `true`, a loading overlay is displayed.
+ * @default false
+ */
+ loading?: boolean;
+};
+````
+
+### LineChartSlotProps
+
+```typescript
+type LineChartSlotProps = {
+ axisLine?: Partial>;
+ axisTick?: Partial>;
+ axisTickLabel?: Partial;
+ axisLabel?: Partial;
+ xAxis?: Partial;
+ yAxis?: Partial;
+ area?: SlotComponentPropsFromProps;
+ line?: SlotComponentPropsFromProps;
+ mark?: Partial;
+ lineHighlight?: SlotComponentPropsFromProps;
+ legend?: (
+ | {
+ onItemClick?: (
+ event: React.MouseEvent,
+ legendItem: SeriesLegendItemContext,
+ index: number,
+ ) => void;
+ classes?: Partial;
+ toggleVisibilityOnClick?: boolean;
+ }
+ | {
+ minLabel?: string | LabelFormatter;
+ maxLabel?: string | LabelFormatter;
+ gradientId?: string;
+ labelPosition?: 'start' | 'end' | 'extremes';
+ reverse?: boolean;
+ classes?: Partial;
+ axisDirection?: 'x' | 'y' | 'z';
+ axisId?: AxisId;
+ rotateGradient?: boolean;
+ thickness?: number;
+ }
+ | {
+ labelFormatter?: (params: PiecewiseLabelFormatterParams) => string | null;
+ labelPosition?: 'start' | 'end' | 'extremes' | 'inline-start' | 'inline-end';
+ onItemClick?: (
+ event: React.MouseEvent,
+ legendItem: PiecewiseColorLegendItemContext,
+ index: number,
+ ) => void;
+ classes?: Partial;
+ axisDirection?: 'x' | 'y' | 'z';
+ axisId?: AxisId;
+ markType?: ChartsLabelMarkType;
+ }
+ ) & {
+ /**
+ * The direction of the legend layout.
+ * The default depends on the chart.
+ */
+ direction?: Direction;
+ className?: string;
+ sx?: SxProps;
+ tabIndex?: number;
+ /**
+ * The position of the legend in relation to the chart.
+ * This property is only passed to the Chart components, e.g. `ScatterChart`, and not the slots themselves.
+ * If customization is needed, simply use the composition pattern.
+ */
+ position?: Position;
+ };
+ loadingOverlay?: SlotComponentPropsFromProps;
+ noDataOverlay?: SlotComponentPropsFromProps;
+ /**
+ * Custom component for the tooltip popper.
+ * @default ChartsTooltipRoot
+ */
+ tooltip?: Partial<
+ (
+ | { anchor?: 'pointer' | 'node'; trigger?: 'item'; sort?: undefined }
+ | { anchor?: 'pointer' | 'chart'; trigger?: 'axis'; sort?: 'none' | 'desc' | 'asc' }
+ | { anchor?: 'pointer'; trigger?: 'none'; sort?: undefined }
+ ) & {
+ position?: 'top' | 'bottom' | 'left' | 'right';
+ classes?: Partial;
+ slots?: ChartsTooltipContainerSlots;
+ slotProps?: ChartsTooltipContainerSlotProps;
+ }
+ >;
+ /** Props for the toolbar component. */
+ toolbar?: Partial;
+ baseButton?: React.DOMAttributes & {
+ className?: string;
+ style?: React.CSSProperties;
+ } & { ref?: React.Ref; id?: string; disabled?: boolean; tabIndex?: number };
+ baseIconButton?: React.DOMAttributes & {
+ className?: string;
+ style?: React.CSSProperties;
+ } & {
+ ref?: React.Ref;
+ id?: string;
+ disabled?: boolean;
+ tabIndex?: number;
+ size?: 'small' | 'medium' | 'large';
+ };
+};
+```
+
+### LineChartSlots
+
+```typescript
+type LineChartSlots = {
+ /**
+ * Custom component for the axis main line.
+ * @default 'line'
+ */
+ axisLine?: React.JSXElementConstructor>;
+ /**
+ * Custom component for the axis tick.
+ * @default 'line'
+ */
+ axisTick?: React.JSXElementConstructor>;
+ /**
+ * Custom component for tick label.
+ * @default ChartsText
+ */
+ axisTickLabel?: React.JSXElementConstructor;
+ /**
+ * Custom component for axis label.
+ * @default ChartsText
+ */
+ axisLabel?: React.JSXElementConstructor;
+ /**
+ * Custom component for the x-axis.
+ * @default ChartsXAxis
+ */
+ xAxis?: React.JSXElementConstructor;
+ /**
+ * Custom component for the y-axis.
+ * @default ChartsYAxis
+ */
+ yAxis?: React.JSXElementConstructor;
+ /**
+ * The component that renders the area.
+ * @default AnimatedArea
+ */
+ area?: React.JSXElementConstructor;
+ /**
+ * The component that renders the line.
+ * @default LineElementPath
+ */
+ line?: React.JSXElementConstructor;
+ mark?: React.JSXElementConstructor;
+ lineHighlight?: React.JSXElementConstructor;
+ /**
+ * Custom rendering of the legend.
+ * @default ChartsLegend
+ */
+ legend?:
+ | React.JSXElementConstructor
+ | React.JSXElementConstructor
+ | React.JSXElementConstructor;
+ /**
+ * Overlay component rendered when the chart is in a loading state.
+ * @default ChartsLoadingOverlay
+ */
+ loadingOverlay?: React.ElementType<
+ CommonOverlayProps,
+ | 'symbol'
+ | 'object'
+ | 'area'
+ | 'line'
+ | 'mark'
+ | 'style'
+ | 'slot'
+ | 'clipPath'
+ | 'filter'
+ | 'mask'
+ | 'path'
+ | 'marker'
+ | 'label'
+ | 'text'
+ | 'p'
+ | 'a'
+ | 'abbr'
+ | 'address'
+ | 'article'
+ | 'aside'
+ | 'audio'
+ | 'b'
+ | 'base'
+ | 'bdi'
+ | 'bdo'
+ | 'big'
+ | 'blockquote'
+ | 'body'
+ | 'br'
+ | 'button'
+ | 'canvas'
+ | 'caption'
+ | 'center'
+ | 'cite'
+ | 'code'
+ | 'col'
+ | 'colgroup'
+ | 'data'
+ | 'datalist'
+ | 'dd'
+ | 'del'
+ | 'details'
+ | 'dfn'
+ | 'dialog'
+ | 'div'
+ | 'dl'
+ | 'dt'
+ | 'em'
+ | 'embed'
+ | 'fieldset'
+ | 'figcaption'
+ | 'figure'
+ | 'footer'
+ | 'form'
+ | 'h1'
+ | 'h2'
+ | 'h3'
+ | 'h4'
+ | 'h5'
+ | 'h6'
+ | 'head'
+ | 'header'
+ | 'hgroup'
+ | 'hr'
+ | 'html'
+ | 'i'
+ | 'iframe'
+ | 'img'
+ | 'input'
+ | 'ins'
+ | 'kbd'
+ | 'keygen'
+ | 'legend'
+ | 'li'
+ | 'link'
+ | 'main'
+ | 'map'
+ | 'menu'
+ | 'menuitem'
+ | 'meta'
+ | 'meter'
+ | 'nav'
+ | 'noindex'
+ | 'noscript'
+ | 'ol'
+ | 'optgroup'
+ | 'option'
+ | 'output'
+ | 'param'
+ | 'picture'
+ | 'pre'
+ | 'progress'
+ | 'q'
+ | 'rp'
+ | 'rt'
+ | 'ruby'
+ | 's'
+ | 'samp'
+ | 'search'
+ | 'script'
+ | 'section'
+ | 'select'
+ | 'small'
+ | 'source'
+ | 'span'
+ | 'strong'
+ | 'sub'
+ | 'summary'
+ | 'sup'
+ | 'table'
+ | 'template'
+ | 'tbody'
+ | 'td'
+ | 'textarea'
+ | 'tfoot'
+ | 'th'
+ | 'thead'
+ | 'time'
+ | 'title'
+ | 'tr'
+ | 'track'
+ | 'u'
+ | 'ul'
+ | 'var'
+ | 'video'
+ | 'wbr'
+ | 'webview'
+ | 'svg'
+ | 'animate'
+ | 'animateMotion'
+ | 'animateTransform'
+ | 'circle'
+ | 'defs'
+ | 'desc'
+ | 'ellipse'
+ | 'feBlend'
+ | 'feColorMatrix'
+ | 'feComponentTransfer'
+ | 'feComposite'
+ | 'feConvolveMatrix'
+ | 'feDiffuseLighting'
+ | 'feDisplacementMap'
+ | 'feDistantLight'
+ | 'feDropShadow'
+ | 'feFlood'
+ | 'feFuncA'
+ | 'feFuncB'
+ | 'feFuncG'
+ | 'feFuncR'
+ | 'feGaussianBlur'
+ | 'feImage'
+ | 'feMerge'
+ | 'feMergeNode'
+ | 'feMorphology'
+ | 'feOffset'
+ | 'fePointLight'
+ | 'feSpecularLighting'
+ | 'feSpotLight'
+ | 'feTile'
+ | 'feTurbulence'
+ | 'foreignObject'
+ | 'g'
+ | 'image'
+ | 'linearGradient'
+ | 'metadata'
+ | 'mpath'
+ | 'pattern'
+ | 'polygon'
+ | 'polyline'
+ | 'radialGradient'
+ | 'rect'
+ | 'set'
+ | 'stop'
+ | 'switch'
+ | 'textPath'
+ | 'tspan'
+ | 'use'
+ | 'view'
+ >;
+ /**
+ * Overlay component rendered when the chart has no data to display.
+ * @default ChartsNoDataOverlay
+ */
+ noDataOverlay?: React.ElementType<
+ CommonOverlayProps,
+ | 'symbol'
+ | 'object'
+ | 'area'
+ | 'line'
+ | 'mark'
+ | 'style'
+ | 'slot'
+ | 'clipPath'
+ | 'filter'
+ | 'mask'
+ | 'path'
+ | 'marker'
+ | 'label'
+ | 'text'
+ | 'p'
+ | 'a'
+ | 'abbr'
+ | 'address'
+ | 'article'
+ | 'aside'
+ | 'audio'
+ | 'b'
+ | 'base'
+ | 'bdi'
+ | 'bdo'
+ | 'big'
+ | 'blockquote'
+ | 'body'
+ | 'br'
+ | 'button'
+ | 'canvas'
+ | 'caption'
+ | 'center'
+ | 'cite'
+ | 'code'
+ | 'col'
+ | 'colgroup'
+ | 'data'
+ | 'datalist'
+ | 'dd'
+ | 'del'
+ | 'details'
+ | 'dfn'
+ | 'dialog'
+ | 'div'
+ | 'dl'
+ | 'dt'
+ | 'em'
+ | 'embed'
+ | 'fieldset'
+ | 'figcaption'
+ | 'figure'
+ | 'footer'
+ | 'form'
+ | 'h1'
+ | 'h2'
+ | 'h3'
+ | 'h4'
+ | 'h5'
+ | 'h6'
+ | 'head'
+ | 'header'
+ | 'hgroup'
+ | 'hr'
+ | 'html'
+ | 'i'
+ | 'iframe'
+ | 'img'
+ | 'input'
+ | 'ins'
+ | 'kbd'
+ | 'keygen'
+ | 'legend'
+ | 'li'
+ | 'link'
+ | 'main'
+ | 'map'
+ | 'menu'
+ | 'menuitem'
+ | 'meta'
+ | 'meter'
+ | 'nav'
+ | 'noindex'
+ | 'noscript'
+ | 'ol'
+ | 'optgroup'
+ | 'option'
+ | 'output'
+ | 'param'
+ | 'picture'
+ | 'pre'
+ | 'progress'
+ | 'q'
+ | 'rp'
+ | 'rt'
+ | 'ruby'
+ | 's'
+ | 'samp'
+ | 'search'
+ | 'script'
+ | 'section'
+ | 'select'
+ | 'small'
+ | 'source'
+ | 'span'
+ | 'strong'
+ | 'sub'
+ | 'summary'
+ | 'sup'
+ | 'table'
+ | 'template'
+ | 'tbody'
+ | 'td'
+ | 'textarea'
+ | 'tfoot'
+ | 'th'
+ | 'thead'
+ | 'time'
+ | 'title'
+ | 'tr'
+ | 'track'
+ | 'u'
+ | 'ul'
+ | 'var'
+ | 'video'
+ | 'wbr'
+ | 'webview'
+ | 'svg'
+ | 'animate'
+ | 'animateMotion'
+ | 'animateTransform'
+ | 'circle'
+ | 'defs'
+ | 'desc'
+ | 'ellipse'
+ | 'feBlend'
+ | 'feColorMatrix'
+ | 'feComponentTransfer'
+ | 'feComposite'
+ | 'feConvolveMatrix'
+ | 'feDiffuseLighting'
+ | 'feDisplacementMap'
+ | 'feDistantLight'
+ | 'feDropShadow'
+ | 'feFlood'
+ | 'feFuncA'
+ | 'feFuncB'
+ | 'feFuncG'
+ | 'feFuncR'
+ | 'feGaussianBlur'
+ | 'feImage'
+ | 'feMerge'
+ | 'feMergeNode'
+ | 'feMorphology'
+ | 'feOffset'
+ | 'fePointLight'
+ | 'feSpecularLighting'
+ | 'feSpotLight'
+ | 'feTile'
+ | 'feTurbulence'
+ | 'foreignObject'
+ | 'g'
+ | 'image'
+ | 'linearGradient'
+ | 'metadata'
+ | 'mpath'
+ | 'pattern'
+ | 'polygon'
+ | 'polyline'
+ | 'radialGradient'
+ | 'rect'
+ | 'set'
+ | 'stop'
+ | 'switch'
+ | 'textPath'
+ | 'tspan'
+ | 'use'
+ | 'view'
+ >;
+ /**
+ * Custom component for the tooltip popper.
+ * @default ChartsTooltipRoot
+ */
+ tooltip?: React.ElementType<
+ (
+ | { anchor?: 'pointer' | 'node'; trigger?: 'item'; sort?: undefined }
+ | { anchor?: 'pointer' | 'chart'; trigger?: 'axis'; sort?: 'none' | 'desc' | 'asc' }
+ | { anchor?: 'pointer'; trigger?: 'none'; sort?: undefined }
+ ) & {
+ position?: 'top' | 'bottom' | 'left' | 'right';
+ classes?: Partial;
+ slots?: ChartsTooltipContainerSlots;
+ slotProps?: ChartsTooltipContainerSlotProps;
+ },
+ | 'symbol'
+ | 'object'
+ | 'area'
+ | 'line'
+ | 'mark'
+ | 'style'
+ | 'slot'
+ | 'clipPath'
+ | 'filter'
+ | 'mask'
+ | 'path'
+ | 'marker'
+ | 'label'
+ | 'text'
+ | 'p'
+ | 'a'
+ | 'abbr'
+ | 'address'
+ | 'article'
+ | 'aside'
+ | 'audio'
+ | 'b'
+ | 'base'
+ | 'bdi'
+ | 'bdo'
+ | 'big'
+ | 'blockquote'
+ | 'body'
+ | 'br'
+ | 'button'
+ | 'canvas'
+ | 'caption'
+ | 'center'
+ | 'cite'
+ | 'code'
+ | 'col'
+ | 'colgroup'
+ | 'data'
+ | 'datalist'
+ | 'dd'
+ | 'del'
+ | 'details'
+ | 'dfn'
+ | 'dialog'
+ | 'div'
+ | 'dl'
+ | 'dt'
+ | 'em'
+ | 'embed'
+ | 'fieldset'
+ | 'figcaption'
+ | 'figure'
+ | 'footer'
+ | 'form'
+ | 'h1'
+ | 'h2'
+ | 'h3'
+ | 'h4'
+ | 'h5'
+ | 'h6'
+ | 'head'
+ | 'header'
+ | 'hgroup'
+ | 'hr'
+ | 'html'
+ | 'i'
+ | 'iframe'
+ | 'img'
+ | 'input'
+ | 'ins'
+ | 'kbd'
+ | 'keygen'
+ | 'legend'
+ | 'li'
+ | 'link'
+ | 'main'
+ | 'map'
+ | 'menu'
+ | 'menuitem'
+ | 'meta'
+ | 'meter'
+ | 'nav'
+ | 'noindex'
+ | 'noscript'
+ | 'ol'
+ | 'optgroup'
+ | 'option'
+ | 'output'
+ | 'param'
+ | 'picture'
+ | 'pre'
+ | 'progress'
+ | 'q'
+ | 'rp'
+ | 'rt'
+ | 'ruby'
+ | 's'
+ | 'samp'
+ | 'search'
+ | 'script'
+ | 'section'
+ | 'select'
+ | 'small'
+ | 'source'
+ | 'span'
+ | 'strong'
+ | 'sub'
+ | 'summary'
+ | 'sup'
+ | 'table'
+ | 'template'
+ | 'tbody'
+ | 'td'
+ | 'textarea'
+ | 'tfoot'
+ | 'th'
+ | 'thead'
+ | 'time'
+ | 'title'
+ | 'tr'
+ | 'track'
+ | 'u'
+ | 'ul'
+ | 'var'
+ | 'video'
+ | 'wbr'
+ | 'webview'
+ | 'svg'
+ | 'animate'
+ | 'animateMotion'
+ | 'animateTransform'
+ | 'circle'
+ | 'defs'
+ | 'desc'
+ | 'ellipse'
+ | 'feBlend'
+ | 'feColorMatrix'
+ | 'feComponentTransfer'
+ | 'feComposite'
+ | 'feConvolveMatrix'
+ | 'feDiffuseLighting'
+ | 'feDisplacementMap'
+ | 'feDistantLight'
+ | 'feDropShadow'
+ | 'feFlood'
+ | 'feFuncA'
+ | 'feFuncB'
+ | 'feFuncG'
+ | 'feFuncR'
+ | 'feGaussianBlur'
+ | 'feImage'
+ | 'feMerge'
+ | 'feMergeNode'
+ | 'feMorphology'
+ | 'feOffset'
+ | 'fePointLight'
+ | 'feSpecularLighting'
+ | 'feSpotLight'
+ | 'feTile'
+ | 'feTurbulence'
+ | 'foreignObject'
+ | 'g'
+ | 'image'
+ | 'linearGradient'
+ | 'metadata'
+ | 'mpath'
+ | 'pattern'
+ | 'polygon'
+ | 'polyline'
+ | 'radialGradient'
+ | 'rect'
+ | 'set'
+ | 'stop'
+ | 'switch'
+ | 'textPath'
+ | 'tspan'
+ | 'use'
+ | 'view'
+ >;
+ /**
+ * Custom component for the toolbar.
+ * @default ChartsToolbar
+ */
+ toolbar?: React.ElementType<
+ ChartsToolbarProps,
+ | 'symbol'
+ | 'object'
+ | 'area'
+ | 'line'
+ | 'mark'
+ | 'style'
+ | 'slot'
+ | 'clipPath'
+ | 'filter'
+ | 'mask'
+ | 'path'
+ | 'marker'
+ | 'label'
+ | 'text'
+ | 'p'
+ | 'a'
+ | 'abbr'
+ | 'address'
+ | 'article'
+ | 'aside'
+ | 'audio'
+ | 'b'
+ | 'base'
+ | 'bdi'
+ | 'bdo'
+ | 'big'
+ | 'blockquote'
+ | 'body'
+ | 'br'
+ | 'button'
+ | 'canvas'
+ | 'caption'
+ | 'center'
+ | 'cite'
+ | 'code'
+ | 'col'
+ | 'colgroup'
+ | 'data'
+ | 'datalist'
+ | 'dd'
+ | 'del'
+ | 'details'
+ | 'dfn'
+ | 'dialog'
+ | 'div'
+ | 'dl'
+ | 'dt'
+ | 'em'
+ | 'embed'
+ | 'fieldset'
+ | 'figcaption'
+ | 'figure'
+ | 'footer'
+ | 'form'
+ | 'h1'
+ | 'h2'
+ | 'h3'
+ | 'h4'
+ | 'h5'
+ | 'h6'
+ | 'head'
+ | 'header'
+ | 'hgroup'
+ | 'hr'
+ | 'html'
+ | 'i'
+ | 'iframe'
+ | 'img'
+ | 'input'
+ | 'ins'
+ | 'kbd'
+ | 'keygen'
+ | 'legend'
+ | 'li'
+ | 'link'
+ | 'main'
+ | 'map'
+ | 'menu'
+ | 'menuitem'
+ | 'meta'
+ | 'meter'
+ | 'nav'
+ | 'noindex'
+ | 'noscript'
+ | 'ol'
+ | 'optgroup'
+ | 'option'
+ | 'output'
+ | 'param'
+ | 'picture'
+ | 'pre'
+ | 'progress'
+ | 'q'
+ | 'rp'
+ | 'rt'
+ | 'ruby'
+ | 's'
+ | 'samp'
+ | 'search'
+ | 'script'
+ | 'section'
+ | 'select'
+ | 'small'
+ | 'source'
+ | 'span'
+ | 'strong'
+ | 'sub'
+ | 'summary'
+ | 'sup'
+ | 'table'
+ | 'template'
+ | 'tbody'
+ | 'td'
+ | 'textarea'
+ | 'tfoot'
+ | 'th'
+ | 'thead'
+ | 'time'
+ | 'title'
+ | 'tr'
+ | 'track'
+ | 'u'
+ | 'ul'
+ | 'var'
+ | 'video'
+ | 'wbr'
+ | 'webview'
+ | 'svg'
+ | 'animate'
+ | 'animateMotion'
+ | 'animateTransform'
+ | 'circle'
+ | 'defs'
+ | 'desc'
+ | 'ellipse'
+ | 'feBlend'
+ | 'feColorMatrix'
+ | 'feComponentTransfer'
+ | 'feComposite'
+ | 'feConvolveMatrix'
+ | 'feDiffuseLighting'
+ | 'feDisplacementMap'
+ | 'feDistantLight'
+ | 'feDropShadow'
+ | 'feFlood'
+ | 'feFuncA'
+ | 'feFuncB'
+ | 'feFuncG'
+ | 'feFuncR'
+ | 'feGaussianBlur'
+ | 'feImage'
+ | 'feMerge'
+ | 'feMergeNode'
+ | 'feMorphology'
+ | 'feOffset'
+ | 'fePointLight'
+ | 'feSpecularLighting'
+ | 'feSpotLight'
+ | 'feTile'
+ | 'feTurbulence'
+ | 'foreignObject'
+ | 'g'
+ | 'image'
+ | 'linearGradient'
+ | 'metadata'
+ | 'mpath'
+ | 'pattern'
+ | 'polygon'
+ | 'polyline'
+ | 'radialGradient'
+ | 'rect'
+ | 'set'
+ | 'stop'
+ | 'switch'
+ | 'textPath'
+ | 'tspan'
+ | 'use'
+ | 'view'
+ >;
+ baseButton?: React.ComponentType;
+ baseIconButton?: React.ComponentType;
+};
+```
+
+### lineClasses
+
+```typescript
+type lineClasses = {
+ /** Styles applied to the area element. */
+ area: string;
+ /** Styles applied to the line element. */
+ line: string;
+ /** Styles applied to the mark element. */
+ mark: string;
+ /** Styles applied to a mark element when it is animated. */
+ markAnimate: string;
+ /** Styles applied to the highlight element. */
+ highlight: string;
+ /** Styles applied to the AreaPlot root element. */
+ areaPlot: string;
+ /** Styles applied to the LinePlot root element. */
+ linePlot: string;
+ /** Styles applied to the MarkPlot root element. */
+ markPlot: string;
+};
+```
+
+### LineClasses
+
+```typescript
+type LineClasses = {
+ /** Styles applied to the area element. */
+ area: string;
+ /** Styles applied to the line element. */
+ line: string;
+ /** Styles applied to the mark element. */
+ mark: string;
+ /** Styles applied to a mark element when it is animated. */
+ markAnimate: string;
+ /** Styles applied to the highlight element. */
+ highlight: string;
+ /** Styles applied to the AreaPlot root element. */
+ areaPlot: string;
+ /** Styles applied to the LinePlot root element. */
+ linePlot: string;
+ /** Styles applied to the MarkPlot root element. */
+ markPlot: string;
+};
+```
+
+### LineClassKey
+
+```typescript
+type LineClassKey =
+ | 'area'
+ | 'line'
+ | 'mark'
+ | 'markAnimate'
+ | 'highlight'
+ | 'areaPlot'
+ | 'linePlot'
+ | 'markPlot';
+```
+
+### LineElementOwnerState
+
+```typescript
+type LineElementOwnerState = {
+ seriesId: string;
+ color: string;
+ gradientId?: string;
+ isFaded: boolean;
+ isHighlighted: boolean;
+ classes?: Partial;
+ /** If `true`, the line is hidden. */
+ hidden?: boolean;
+};
+```
+
+### LineElementProps
+
+```typescript
+type LineElementProps = {
+ d: string;
+ /** If `true`, the line is hidden. */
+ hidden?: boolean;
+ /**
+ * The props used for each component slot.
+ * @default {}
+ */
+ slotProps?: LineElementSlotProps;
+ /**
+ * Overridable component slots.
+ * @default {}
+ */
+ slots?: LineElementSlots;
+ color: string;
+ classes?: Partial;
+ seriesId: string;
+ gradientId?: string;
+ /**
+ * If `true`, animations are skipped.
+ * @default false
+ */
+ skipAnimation?: boolean;
+};
+```
+
+### LineElementSlotProps
+
+```typescript
+type LineElementSlotProps = {
+ line?: SlotComponentPropsFromProps;
+};
+```
+
+### LineElementSlots
+
+```typescript
+type LineElementSlots = {
+ /**
+ * The component that renders the line.
+ * @default LineElementPath
+ */
+ line?: React.JSXElementConstructor;
+};
+```
+
+### LineHighlightElementProps
+
+```typescript
+type LineHighlightElementProps = (
+ | { shape: 'circle' }
+ | { shape: 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye' }
+) & { seriesId: string; color: string; x: number; y: number };
+```
+
+### LineHighlightPlotProps
+
+```typescript
+type LineHighlightPlotProps = {
+ /**
+ * Overridable component slots.
+ * @default {}
+ */
+ slots?: LineHighlightPlotSlots;
+ /**
+ * The props used for each component slot.
+ * @default {}
+ */
+ slotProps?: LineHighlightPlotSlotProps;
+};
+```
+
+### LineHighlightPlotSlotProps
+
+```typescript
+type LineHighlightPlotSlotProps = {
+ lineHighlight?: SlotComponentPropsFromProps;
+};
+```
+
+### LineHighlightPlotSlots
+
+```typescript
+type LineHighlightPlotSlots = {
+ lineHighlight?: React.JSXElementConstructor;
+};
+```
+
+### LinePlotProps
+
+```typescript
+type LinePlotProps = {
+ /** Callback fired when a line item is clicked. */
+ onItemClick?: (
+ event: React.MouseEvent