-
-
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
1 parent
8d55392
commit cb7dd8f
Showing
25 changed files
with
420 additions
and
179 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 './charts-legend.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', | ||
false, | ||
/\.\/charts-legend(-[a-z]{2})?\.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,22 @@ | ||
{ | ||
"props": { | ||
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } }, | ||
"direction": { "type": { "name": "enum", "description": "'column'<br>| 'row'" } }, | ||
"hidden": { "type": { "name": "bool" } }, | ||
"slotProps": { "type": { "name": "object" }, "default": "{}" }, | ||
"slots": { "type": { "name": "object" }, "default": "{}" } | ||
}, | ||
"slots": [{ "class": null, "name": "legend", "description": "" }], | ||
"name": "ChartsLegend", | ||
"imports": [ | ||
"import { ChartsLegend } from '@mui/x-charts/ChartsLegend';", | ||
"import { ChartsLegend } from '@mui/x-charts';" | ||
], | ||
"styles": { | ||
"classes": ["root", "series", "mark", "label", "column", "row"], | ||
"globalClasses": {}, | ||
"name": "MuiChartsLegend" | ||
}, | ||
"filename": "/packages/x-charts/src/ChartsLegend/ChartsLegend.tsx", | ||
"demos": "<ul></ul>" | ||
} |
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,45 @@ | ||
{ | ||
"componentDescription": "", | ||
"propDescriptions": { | ||
"classes": { | ||
"description": "Override or extend the styles applied to the component.", | ||
"deprecated": "", | ||
"typeDescriptions": {} | ||
}, | ||
"direction": { | ||
"description": "The direction of the legend layout. The default depends on the chart.", | ||
"deprecated": "", | ||
"typeDescriptions": {} | ||
}, | ||
"hidden": { | ||
"description": "Set to true to hide the legend.", | ||
"deprecated": "", | ||
"typeDescriptions": {} | ||
}, | ||
"slotProps": { | ||
"description": "The props used for each component slot.", | ||
"deprecated": "", | ||
"typeDescriptions": {} | ||
}, | ||
"slots": { | ||
"description": "Overridable component slots.", | ||
"deprecated": "", | ||
"typeDescriptions": {} | ||
} | ||
}, | ||
"classDescriptions": { | ||
"root": { "description": "Styles applied to the root element." }, | ||
"series": { "description": "Styles applied to {{nodeName}}.", "nodeName": "a series element" }, | ||
"mark": { "description": "Styles applied to {{nodeName}}.", "nodeName": "series mark element" }, | ||
"label": { "description": "Styles applied to {{nodeName}}.", "nodeName": "the series label" }, | ||
"column": { | ||
"description": "Styles applied to {{nodeName}}.", | ||
"nodeName": "the legend with column layout" | ||
}, | ||
"row": { | ||
"description": "Styles applied to {{nodeName}}.", | ||
"nodeName": "the legend with row layout" | ||
} | ||
}, | ||
"slotDescriptions": { "legend": "" } | ||
} |
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
Oops, something went wrong.