Skip to content

Commit

Permalink
[docs] Document the TreeItem2 component and the useTreeItem2 hook (
Browse files Browse the repository at this point in the history
…#14551)

Signed-off-by: Nora <[email protected]>
Co-authored-by: Sycamore <[email protected]>
  • Loading branch information
noraleonte and samuelsycamore authored Oct 9, 2024
1 parent b4b1794 commit e8991e9
Show file tree
Hide file tree
Showing 70 changed files with 2,477 additions and 786 deletions.
4 changes: 3 additions & 1 deletion docs/data/charts/highlighting/ElementHighlights.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import TextField from '@mui/material/TextField';
import MenuItem from '@mui/material/MenuItem';
import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
import ToggleButton from '@mui/material/ToggleButton';

import { BarChart } from '@mui/x-charts/BarChart';
import { LineChart } from '@mui/x-charts/LineChart';
import { ScatterChart } from '@mui/x-charts/ScatterChart';
Expand Down Expand Up @@ -130,6 +129,7 @@ export default function ElementHighlights() {
}))}
/>
)}

{chartType === 'line' && (
<LineChart
{...lineChartsParams}
Expand All @@ -143,6 +143,7 @@ export default function ElementHighlights() {
}))}
/>
)}

{chartType === 'scatter' && (
<ScatterChart
{...scatterChartsParams}
Expand All @@ -155,6 +156,7 @@ export default function ElementHighlights() {
}))}
/>
)}

{chartType === 'pie' && (
<PieChart
{...pieChartsParams}
Expand Down
5 changes: 4 additions & 1 deletion docs/data/charts/highlighting/ElementHighlights.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import TextField from '@mui/material/TextField';
import MenuItem from '@mui/material/MenuItem';
import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
import ToggleButton from '@mui/material/ToggleButton';
import { HighlightScope } from '@mui/x-charts/context';
import { BarChart } from '@mui/x-charts/BarChart';
import { LineChart } from '@mui/x-charts/LineChart';
import { ScatterChart } from '@mui/x-charts/ScatterChart';
import { PieChart } from '@mui/x-charts/PieChart';
import { HighlightScope } from '@mui/x-charts/context';

const barChartsParams = {
series: [
Expand Down Expand Up @@ -130,6 +130,7 @@ export default function ElementHighlights() {
}))}
/>
)}

{chartType === 'line' && (
<LineChart
{...lineChartsParams}
Expand All @@ -143,6 +144,7 @@ export default function ElementHighlights() {
}))}
/>
)}

{chartType === 'scatter' && (
<ScatterChart
{...scatterChartsParams}
Expand All @@ -155,6 +157,7 @@ export default function ElementHighlights() {
}))}
/>
)}

{chartType === 'pie' && (
<PieChart
{...pieChartsParams}
Expand Down
58 changes: 0 additions & 58 deletions docs/data/tree-view/rich-tree-view/customization/LabelSlotProps.js

This file was deleted.

This file was deleted.

168 changes: 0 additions & 168 deletions docs/data/tree-view/rich-tree-view/customization/LabelSlots.js

This file was deleted.

Loading

0 comments on commit e8991e9

Please sign in to comment.