Skip to content

Commit

Permalink
rename demo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Jul 16, 2024
1 parent f35d0dd commit 745b5bc
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions docs/data/charts/heatmap/BasicHeatmap.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as React from 'react';
import Box from '@mui/material/Box';
import '@mui/x-charts-pro/typeOverloads';
import { UnstableHeatmap } from '@mui/x-charts-pro/Heatmap';
import { Heatmap } from '@mui/x-charts-pro/Heatmap';
import { data } from './dumbData';

export default function BasicHeatmap() {
return (
<Box sx={{ width: '100%', maxWidth: 400 }}>
<UnstableHeatmap
<Heatmap
xAxis={[{ data: [1, 2, 3, 4] }]}
yAxis={[{ data: ['A', 'B', 'C', 'D', 'E'] }]}
series={[{ data }]}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/heatmap/BasicHeatmap.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as React from 'react';
import Box from '@mui/material/Box';
import '@mui/x-charts-pro/typeOverloads';
import { UnstableHeatmap } from '@mui/x-charts-pro/Heatmap';
import { Heatmap } from '@mui/x-charts-pro/Heatmap';
import { data } from './dumbData';

export default function BasicHeatmap() {
return (
<Box sx={{ width: '100%', maxWidth: 400 }}>
<UnstableHeatmap
<Heatmap
xAxis={[{ data: [1, 2, 3, 4] }]}
yAxis={[{ data: ['A', 'B', 'C', 'D', 'E'] }]}
series={[{ data }]}
Expand Down
2 changes: 1 addition & 1 deletion docs/data/charts/heatmap/BasicHeatmap.tsx.preview
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<UnstableHeatmap
<Heatmap
xAxis={[{ data: [1, 2, 3, 4] }]}
yAxis={[{ data: ['A', 'B', 'C', 'D', 'E'] }]}
series={[{ data }]}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/heatmap/ColorConfig.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { interpolateBlues } from 'd3-scale-chromatic';
import '@mui/x-charts-pro/typeOverloads';
import { UnstableHeatmap } from '@mui/x-charts-pro/Heatmap';
import { Heatmap } from '@mui/x-charts-pro/Heatmap';

const dataset = [
{
Expand Down Expand Up @@ -102,7 +102,7 @@ const yData = dataset.flatMap(({ month }) => month);

export default function ColorConfig() {
return (
<UnstableHeatmap
<Heatmap
height={400}
width={600}
xAxis={[{ data: xData }]}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/heatmap/ColorConfig.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { interpolateBlues } from 'd3-scale-chromatic';
import '@mui/x-charts-pro/typeOverloads';
import { UnstableHeatmap } from '@mui/x-charts-pro/Heatmap';
import { Heatmap } from '@mui/x-charts-pro/Heatmap';
import { HeatmapValueType } from '@mui/x-charts-pro/models';

const dataset = [
Expand Down Expand Up @@ -105,7 +105,7 @@ const yData = dataset.flatMap(({ month }) => month);

export default function ColorConfig() {
return (
<UnstableHeatmap
<Heatmap
height={400}
width={600}
xAxis={[{ data: xData }]}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/heatmap/CustomItem.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import Box from '@mui/material/Box';
import '@mui/x-charts-pro/typeOverloads';
import { UnstableHeatmap } from '@mui/x-charts-pro/Heatmap';
import { Heatmap } from '@mui/x-charts-pro/Heatmap';
import { data } from './dumbData';

function CustomCell(props) {
Expand Down Expand Up @@ -33,7 +33,7 @@ function CustomCell(props) {
export default function CustomItem() {
return (
<Box sx={{ width: '100%', maxWidth: 400 }}>
<UnstableHeatmap
<Heatmap
slots={{ cell: CustomCell }}
xAxis={[{ data: [1, 2, 3, 4] }]}
yAxis={[{ data: ['A', 'B', 'C', 'D', 'E'] }]}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/heatmap/CustomItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import Box from '@mui/material/Box';
import '@mui/x-charts-pro/typeOverloads';
import { UnstableHeatmap } from '@mui/x-charts-pro/Heatmap';
import { Heatmap } from '@mui/x-charts-pro/Heatmap';
import { data } from './dumbData';

function CustomCell(props: any) {
Expand Down Expand Up @@ -33,7 +33,7 @@ function CustomCell(props: any) {
export default function CustomItem() {
return (
<Box sx={{ width: '100%', maxWidth: 400 }}>
<UnstableHeatmap
<Heatmap
slots={{ cell: CustomCell }}
xAxis={[{ data: [1, 2, 3, 4] }]}
yAxis={[{ data: ['A', 'B', 'C', 'D', 'E'] }]}
Expand Down
2 changes: 1 addition & 1 deletion docs/data/charts/heatmap/CustomItem.tsx.preview
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<UnstableHeatmap
<Heatmap
slots={{ cell: CustomCell }}
xAxis={[{ data: [1, 2, 3, 4] }]}
yAxis={[{ data: ['A', 'B', 'C', 'D', 'E'] }]}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/heatmap/HighlightClasses.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as React from 'react';
import Box from '@mui/material/Box';
import '@mui/x-charts-pro/typeOverloads';
import { UnstableHeatmap, heatmapClasses } from '@mui/x-charts-pro/Heatmap';
import { Heatmap, heatmapClasses } from '@mui/x-charts-pro/Heatmap';
import { data } from './dumbData';

export default function HighlightClasses() {
return (
<Box sx={{ width: '100%', maxWidth: 400 }}>
<UnstableHeatmap
<Heatmap
sx={{
[`.${heatmapClasses.cell}`]: {
[`&.${heatmapClasses.highlighted}`]: {
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/heatmap/HighlightClasses.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as React from 'react';
import Box from '@mui/material/Box';
import '@mui/x-charts-pro/typeOverloads';
import { UnstableHeatmap, heatmapClasses } from '@mui/x-charts-pro/Heatmap';
import { Heatmap, heatmapClasses } from '@mui/x-charts-pro/Heatmap';
import { data } from './dumbData';

export default function HighlightClasses() {
return (
<Box sx={{ width: '100%', maxWidth: 400 }}>
<UnstableHeatmap
<Heatmap
sx={{
[`.${heatmapClasses.cell}`]: {
[`&.${heatmapClasses.highlighted}`]: {
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/heatmap/HighlightHeatmap.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as React from 'react';
import Box from '@mui/material/Box';
import '@mui/x-charts-pro/typeOverloads';
import { UnstableHeatmap } from '@mui/x-charts-pro/Heatmap';
import { Heatmap } from '@mui/x-charts-pro/Heatmap';
import { data } from './dumbData';

export default function HighlightHeatmap() {
return (
<Box sx={{ width: '100%', maxWidth: 400 }}>
<UnstableHeatmap
<Heatmap
xAxis={[{ data: [1, 2, 3, 4] }]}
yAxis={[{ data: ['A', 'B', 'C', 'D', 'E'] }]}
series={[{ data, highlightScope: { highlight: 'item', fade: 'global' } }]}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/heatmap/HighlightHeatmap.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as React from 'react';
import Box from '@mui/material/Box';
import '@mui/x-charts-pro/typeOverloads';
import { UnstableHeatmap } from '@mui/x-charts-pro/Heatmap';
import { Heatmap } from '@mui/x-charts-pro/Heatmap';
import { data } from './dumbData';

export default function HighlightHeatmap() {
return (
<Box sx={{ width: '100%', maxWidth: 400 }}>
<UnstableHeatmap
<Heatmap
xAxis={[{ data: [1, 2, 3, 4] }]}
yAxis={[{ data: ['A', 'B', 'C', 'D', 'E'] }]}
series={[{ data, highlightScope: { highlight: 'item', fade: 'global' } }]}
Expand Down
2 changes: 1 addition & 1 deletion docs/data/charts/heatmap/HighlightHeatmap.tsx.preview
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<UnstableHeatmap
<Heatmap
xAxis={[{ data: [1, 2, 3, 4] }]}
yAxis={[{ data: ['A', 'B', 'C', 'D', 'E'] }]}
series={[{ data, highlightScope: { highlight: 'item', fade: 'global' } }]}
Expand Down

0 comments on commit 745b5bc

Please sign in to comment.