-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
995 additions
and
980 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as React from 'react'; | ||
import ApiPage from 'docs/src/modules/components/ApiPage'; | ||
import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; | ||
import jsonPageContent from './chart-container.json'; | ||
|
||
export default function Page(props) { | ||
const { descriptions, pageContent } = props; | ||
return <ApiPage descriptions={descriptions} pageContent={pageContent} />; | ||
} | ||
|
||
Page.getInitialProps = () => { | ||
const req = require.context( | ||
'docsx/translations/api-docs/charts/chart-container', | ||
false, | ||
/\.\/chart-container.*.json$/, | ||
); | ||
const descriptions = mapApiPageTranslations(req); | ||
|
||
return { | ||
descriptions, | ||
pageContent: jsonPageContent, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"props": { | ||
"height": { "type": { "name": "number" }, "required": true }, | ||
"series": { | ||
"type": { "name": "arrayOf", "description": "Array<object>" }, | ||
"required": true | ||
}, | ||
"width": { "type": { "name": "number" }, "required": true }, | ||
"colors": { | ||
"type": { "name": "union", "description": "Array<string><br>| func" }, | ||
"default": "blueberryTwilightPalette" | ||
}, | ||
"dataset": { "type": { "name": "arrayOf", "description": "Array<object>" } }, | ||
"disableAxisListener": { "type": { "name": "bool" }, "default": "false" }, | ||
"margin": { | ||
"type": { | ||
"name": "shape", | ||
"description": "{ bottom?: number, left?: number, right?: number, top?: number }" | ||
}, | ||
"default": "object Depends on the charts type." | ||
}, | ||
"xAxis": { | ||
"type": { | ||
"name": "arrayOf", | ||
"description": "Array<{ axisId?: string, classes?: object, data?: array, dataKey?: string, disableLine?: bool, disableTicks?: bool, fill?: string, hideTooltip?: bool, id?: string, label?: string, labelFontSize?: number, labelStyle?: object, max?: Date<br>| number, min?: Date<br>| number, position?: 'bottom'<br>| 'left'<br>| 'right'<br>| 'top', scaleType?: 'band'<br>| 'linear'<br>| 'log'<br>| 'point'<br>| 'pow'<br>| 'sqrt'<br>| 'time'<br>| 'utc', slotProps?: object, slots?: object, stroke?: string, tickFontSize?: number, tickInterval?: 'auto'<br>| array<br>| func, tickLabelInterval?: 'auto'<br>| func, tickLabelStyle?: object, tickMaxStep?: number, tickMinStep?: number, tickNumber?: number, tickSize?: number, valueFormatter?: func }>" | ||
} | ||
}, | ||
"yAxis": { | ||
"type": { | ||
"name": "arrayOf", | ||
"description": "Array<{ axisId?: string, classes?: object, data?: array, dataKey?: string, disableLine?: bool, disableTicks?: bool, fill?: string, hideTooltip?: bool, id?: string, label?: string, labelFontSize?: number, labelStyle?: object, max?: Date<br>| number, min?: Date<br>| number, position?: 'bottom'<br>| 'left'<br>| 'right'<br>| 'top', scaleType?: 'band'<br>| 'linear'<br>| 'log'<br>| 'point'<br>| 'pow'<br>| 'sqrt'<br>| 'time'<br>| 'utc', slotProps?: object, slots?: object, stroke?: string, tickFontSize?: number, tickInterval?: 'auto'<br>| array<br>| func, tickLabelInterval?: 'auto'<br>| func, tickLabelStyle?: object, tickMaxStep?: number, tickMinStep?: number, tickNumber?: number, tickSize?: number, valueFormatter?: func }>" | ||
} | ||
} | ||
}, | ||
"name": "ChartContainer", | ||
"imports": [ | ||
"import { ChartContainer } from '@mui/x-charts/ChartContainer';", | ||
"import { ChartContainer } from '@mui/x-charts';" | ||
], | ||
"classes": [], | ||
"muiName": "MuiChartContainer", | ||
"filename": "/packages/x-charts/src/ChartContainer/ChartContainer.tsx", | ||
"inheritance": null, | ||
"demos": "<ul><li><a href=\"/x/react-charts/composition/\">Chart composition</a></li></ul>", | ||
"cssComponent": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as React from 'react'; | ||
import ApiPage from 'docs/src/modules/components/ApiPage'; | ||
import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; | ||
import jsonPageContent from './responsive-chart-container.json'; | ||
|
||
export default function Page(props) { | ||
const { descriptions, pageContent } = props; | ||
return <ApiPage descriptions={descriptions} pageContent={pageContent} />; | ||
} | ||
|
||
Page.getInitialProps = () => { | ||
const req = require.context( | ||
'docsx/translations/api-docs/charts/responsive-chart-container', | ||
false, | ||
/\.\/responsive-chart-container.*.json$/, | ||
); | ||
const descriptions = mapApiPageTranslations(req); | ||
|
||
return { | ||
descriptions, | ||
pageContent: jsonPageContent, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"props": { | ||
"series": { | ||
"type": { "name": "arrayOf", "description": "Array<object>" }, | ||
"required": true | ||
}, | ||
"colors": { | ||
"type": { "name": "union", "description": "Array<string><br>| func" }, | ||
"default": "blueberryTwilightPalette" | ||
}, | ||
"dataset": { "type": { "name": "arrayOf", "description": "Array<object>" } }, | ||
"disableAxisListener": { "type": { "name": "bool" }, "default": "false" }, | ||
"height": { "type": { "name": "number" }, "default": "undefined" }, | ||
"margin": { | ||
"type": { | ||
"name": "shape", | ||
"description": "{ bottom?: number, left?: number, right?: number, top?: number }" | ||
}, | ||
"default": "object Depends on the charts type." | ||
}, | ||
"width": { "type": { "name": "number" }, "default": "undefined" }, | ||
"xAxis": { | ||
"type": { | ||
"name": "arrayOf", | ||
"description": "Array<{ axisId?: string, classes?: object, data?: array, dataKey?: string, disableLine?: bool, disableTicks?: bool, fill?: string, hideTooltip?: bool, id?: string, label?: string, labelFontSize?: number, labelStyle?: object, max?: Date<br>| number, min?: Date<br>| number, position?: 'bottom'<br>| 'left'<br>| 'right'<br>| 'top', scaleType?: 'band'<br>| 'linear'<br>| 'log'<br>| 'point'<br>| 'pow'<br>| 'sqrt'<br>| 'time'<br>| 'utc', slotProps?: object, slots?: object, stroke?: string, tickFontSize?: number, tickInterval?: 'auto'<br>| array<br>| func, tickLabelInterval?: 'auto'<br>| func, tickLabelStyle?: object, tickMaxStep?: number, tickMinStep?: number, tickNumber?: number, tickSize?: number, valueFormatter?: func }>" | ||
} | ||
}, | ||
"yAxis": { | ||
"type": { | ||
"name": "arrayOf", | ||
"description": "Array<{ axisId?: string, classes?: object, data?: array, dataKey?: string, disableLine?: bool, disableTicks?: bool, fill?: string, hideTooltip?: bool, id?: string, label?: string, labelFontSize?: number, labelStyle?: object, max?: Date<br>| number, min?: Date<br>| number, position?: 'bottom'<br>| 'left'<br>| 'right'<br>| 'top', scaleType?: 'band'<br>| 'linear'<br>| 'log'<br>| 'point'<br>| 'pow'<br>| 'sqrt'<br>| 'time'<br>| 'utc', slotProps?: object, slots?: object, stroke?: string, tickFontSize?: number, tickInterval?: 'auto'<br>| array<br>| func, tickLabelInterval?: 'auto'<br>| func, tickLabelStyle?: object, tickMaxStep?: number, tickMinStep?: number, tickNumber?: number, tickSize?: number, valueFormatter?: func }>" | ||
} | ||
} | ||
}, | ||
"name": "ResponsiveChartContainer", | ||
"imports": [ | ||
"import { ResponsiveChartContainer } from '@mui/x-charts/ResponsiveChartContainer';", | ||
"import { ResponsiveChartContainer } from '@mui/x-charts';" | ||
], | ||
"classes": [], | ||
"muiName": "MuiResponsiveChartContainer", | ||
"filename": "/packages/x-charts/src/ResponsiveChartContainer/ResponsiveChartContainer.tsx", | ||
"inheritance": null, | ||
"demos": "<ul><li><a href=\"/x/react-charts/composition/\">Chart composition</a></li></ul>", | ||
"cssComponent": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
docs/translations/api-docs/charts/chart-container/chart-container.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"componentDescription": "", | ||
"propDescriptions": { | ||
"colors": { "description": "Color palette used to colorize multiple series." }, | ||
"dataset": { | ||
"description": "An array of objects that can be used to populate series and axes data using their <code>dataKey</code> property." | ||
}, | ||
"disableAxisListener": { | ||
"description": "If <code>true</code>, the charts will not listen to the mouse move event. It might break interactive features, but will improve performance." | ||
}, | ||
"height": { "description": "The height of the chart in px." }, | ||
"margin": { | ||
"description": "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 an object with the optional properties: <code>top</code>, <code>bottom</code>, <code>left</code>, and <code>right</code>." | ||
}, | ||
"series": { | ||
"description": "The array of series to display. Each type of series has its own specificity. Please refer to the appropriate docs page to learn more about it." | ||
}, | ||
"width": { "description": "The width of the chart in px." }, | ||
"xAxis": { | ||
"description": "The configuration of the x-axes. If not provided, a default axis config is used with id set to <code>DEFAULT_X_AXIS_KEY</code>." | ||
}, | ||
"yAxis": { | ||
"description": "The configuration of the y-axes. If not provided, a default axis config is used with id set to <code>DEFAULT_Y_AXIS_KEY</code>." | ||
} | ||
}, | ||
"classDescriptions": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
docs/translations/api-docs/charts/responsive-chart-container/responsive-chart-container.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"componentDescription": "", | ||
"propDescriptions": { | ||
"colors": { "description": "Color palette used to colorize multiple series." }, | ||
"dataset": { | ||
"description": "An array of objects that can be used to populate series and axes data using their <code>dataKey</code> property." | ||
}, | ||
"disableAxisListener": { | ||
"description": "If <code>true</code>, the charts will not listen to the mouse move event. It might break interactive features, but will improve performance." | ||
}, | ||
"height": { | ||
"description": "The height of the chart in px. If not defined, it takes the height of the parent element." | ||
}, | ||
"margin": { | ||
"description": "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 an object with the optional properties: <code>top</code>, <code>bottom</code>, <code>left</code>, and <code>right</code>." | ||
}, | ||
"series": { | ||
"description": "The array of series to display. Each type of series has its own specificity. Please refer to the appropriate docs page to learn more about it." | ||
}, | ||
"width": { | ||
"description": "The width of the chart in px. If not defined, it takes the width of the parent element." | ||
}, | ||
"xAxis": { | ||
"description": "The configuration of the x-axes. If not provided, a default axis config is used with id set to <code>DEFAULT_X_AXIS_KEY</code>." | ||
}, | ||
"yAxis": { | ||
"description": "The configuration of the y-axes. If not provided, a default axis config is used with id set to <code>DEFAULT_Y_AXIS_KEY</code>." | ||
} | ||
}, | ||
"classDescriptions": {} | ||
} |
Oops, something went wrong.