Skip to content

Commit

Permalink
[docs] Improve performance on charts entry point
Browse files Browse the repository at this point in the history
A quick follow up on mui#12041
  • Loading branch information
oliviertassinari authored and thomasmoon committed Sep 6, 2024
1 parent 4b476ef commit ef73d54
Show file tree
Hide file tree
Showing 28 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/data/charts/heat-map/heat-map.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: React Heat map chart
title: React Heatmap chart
productId: x-charts
---

Expand Down
8 changes: 4 additions & 4 deletions docs/data/charts/tree-map/tree-map.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
title: React Tree map chart
title: React Treemap chart
productId: x-charts
---

# Charts - Tree map 🚧
# Charts - Treemap 🚧

<p class="description">Tree map allows to display data with a hierarchical structure.</p>
<p class="description">Treemap allows to display data with a hierarchical structure.</p>

:::warning
The Tree map Chart component isn't available yet, but you can upvote [**this GitHub issue**](https://github.com/mui/mui-x/issues/7924) to see it arrive sooner.
The Treemap Chart component isn't available yet, but you can upvote [**this GitHub issue**](https://github.com/mui/mui-x/issues/7924) to see it arrive sooner.

Don't hesitate to leave a comment there to influence what gets built.
Especially if you already have a use case for this component, or if you're facing a pain point with your current solution.
Expand Down
2 changes: 1 addition & 1 deletion docs/data/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ const pages: MuiPage[] = [
children: [
{ pathname: '/x/react-charts/heat-map', title: 'Heatmap', planned: true },
{ pathname: '/x/react-charts/radar', title: 'Radar', planned: true },
{ pathname: '/x/react-charts/tree-map', title: 'Tree map', planned: true },
{ pathname: '/x/react-charts/tree-map', title: 'Treemap', planned: true },
{ pathname: '/x/react-charts/funnel', title: 'Funnel', plan: 'pro', planned: true },
{ pathname: '/x/react-charts/gantt', title: 'Gantt', plan: 'pro', planned: true },
{ pathname: '/x/react-charts/sankey', title: 'Sankey', plan: 'pro', planned: true },
Expand Down
Binary file modified docs/public/static/x/component-illustrations/bar-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/bar-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/funnel-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/funnel-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/gantt-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/gantt-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/gauge-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/gauge-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/heatmap-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/heatmap-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/lines-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/lines-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/pie-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/pie-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/radar-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/radar-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/sankey-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/sankey-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/scatter-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/scatter-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/sparkline-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/sparkline-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/treemap-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/x/component-illustrations/treemap-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions docs/src/modules/components/ChartComponentsGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Chip from '@mui/material/Chip';
import Stack from '@mui/material/Stack';
import Link from 'docs/src/modules/components/Link';

function components() {
function getComponents() {
return [
{
title: 'Bar Chart',
Expand Down Expand Up @@ -73,28 +73,31 @@ function components() {
srcDark: '/static/x/component-illustrations/funnel-dark.png',
href: '/x/react-charts/funnel/',
planned: true,
pro: true,
},
{
title: 'Gantt Chart',
srcLight: '/static/x/component-illustrations/gantt-light.png',
srcDark: '/static/x/component-illustrations/gantt-dark.png',
href: '/x/react-charts/gantt/',
planned: true,
pro: true,
},
{
title: 'Sankey Chart',
srcLight: '/static/x/component-illustrations/sankey-light.png',
srcDark: '/static/x/component-illustrations/sankey-dark.png',
href: '/x/react-charts/sankey/',
planned: true,
pro: true,
},
];
}

export default function ChartComponentsGrid() {
return (
<Grid container spacing={2} sx={{ pt: 2, pb: 4 }}>
{components().map((component) => (
{getComponents().map((component) => (
<Grid item xs={12} sm={4} sx={{ flexGrow: 1 }} key={component.title}>
<Card
component={Link}
Expand All @@ -118,6 +121,7 @@ export default function ChartComponentsGrid() {
component="img"
alt=""
image={component.srcLight}
loading="lazy"
sx={(theme) => ({
aspectRatio: '16 / 9',
background: `${(theme.vars || theme).palette.gradients.linearSubtle}`,
Expand Down

0 comments on commit ef73d54

Please sign in to comment.