Skip to content

Commit

Permalink
[docs] Use dedicated tab for weather dataset (mui#13513)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette authored and thomasmoon committed Sep 6, 2024
1 parent a6489a2 commit 931f097
Show file tree
Hide file tree
Showing 12 changed files with 97 additions and 948 deletions.
87 changes: 1 addition & 86 deletions docs/data/charts/axis/AxisTextCustomizationNoSnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,96 +2,11 @@ import * as React from 'react';
import Box from '@mui/material/Box';
import ChartsUsageDemo from 'docsx/src/modules/components/ChartsUsageDemo';
import { BarChart } from '@mui/x-charts/BarChart';
import { dataset } from '../dataset/weather';

const chartSetting = {
height: 300,
};
const dataset = [
{
london: 59,
paris: 57,
newYork: 86,
seoul: 21,
month: 'Jan',
},
{
london: 50,
paris: 52,
newYork: 78,
seoul: 28,
month: 'Fev',
},
{
london: 47,
paris: 53,
newYork: 106,
seoul: 41,
month: 'Mar',
},
{
london: 54,
paris: 56,
newYork: 92,
seoul: 73,
month: 'Apr',
},
{
london: 57,
paris: 69,
newYork: 92,
seoul: 99,
month: 'May',
},
{
london: 60,
paris: 63,
newYork: 103,
seoul: 144,
month: 'June',
},
{
london: 59,
paris: 60,
newYork: 105,
seoul: 319,
month: 'July',
},
{
london: 65,
paris: 60,
newYork: 106,
seoul: 249,
month: 'Aug',
},
{
london: 51,
paris: 51,
newYork: 95,
seoul: 131,
month: 'Sept',
},
{
london: 60,
paris: 65,
newYork: 97,
seoul: 55,
month: 'Oct',
},
{
london: 67,
paris: 64,
newYork: 76,
seoul: 48,
month: 'Nov',
},
{
london: 61,
paris: 70,
newYork: 103,
seoul: 25,
month: 'Dec',
},
];

const valueFormatter = (value) => `${value}mm`;

Expand Down
87 changes: 1 addition & 86 deletions docs/data/charts/axis/GridDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,97 +2,12 @@ import * as React from 'react';
import { axisClasses } from '@mui/x-charts/ChartsAxis';
import { chartsGridClasses } from '@mui/x-charts/ChartsGrid';
import { BarChart } from '@mui/x-charts/BarChart';
import { dataset } from '../dataset/weather';

const chartSetting = {
yAxis: [{ label: 'rainfall (mm)' }],
height: 300,
};
const dataset = [
{
london: 59,
paris: 57,
newYork: 86,
seoul: 21,
month: 'Jan',
},
{
london: 50,
paris: 52,
newYork: 78,
seoul: 28,
month: 'Fev',
},
{
london: 47,
paris: 53,
newYork: 106,
seoul: 41,
month: 'Mar',
},
{
london: 54,
paris: 56,
newYork: 92,
seoul: 73,
month: 'Apr',
},
{
london: 57,
paris: 69,
newYork: 92,
seoul: 99,
month: 'May',
},
{
london: 60,
paris: 63,
newYork: 103,
seoul: 144,
month: 'June',
},
{
london: 59,
paris: 60,
newYork: 105,
seoul: 319,
month: 'July',
},
{
london: 65,
paris: 60,
newYork: 106,
seoul: 249,
month: 'Aug',
},
{
london: 51,
paris: 51,
newYork: 95,
seoul: 131,
month: 'Sept',
},
{
london: 60,
paris: 65,
newYork: 97,
seoul: 55,
month: 'Oct',
},
{
london: 67,
paris: 64,
newYork: 76,
seoul: 48,
month: 'Nov',
},
{
london: 61,
paris: 70,
newYork: 103,
seoul: 25,
month: 'Dec',
},
];

const valueFormatter = (value) => `${value}mm`;

Expand Down
87 changes: 1 addition & 86 deletions docs/data/charts/axis/GridDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,97 +2,12 @@ import * as React from 'react';
import { axisClasses } from '@mui/x-charts/ChartsAxis';
import { chartsGridClasses } from '@mui/x-charts/ChartsGrid';
import { BarChart } from '@mui/x-charts/BarChart';
import { dataset } from '../dataset/weather';

const chartSetting = {
yAxis: [{ label: 'rainfall (mm)' }],
height: 300,
};
const dataset = [
{
london: 59,
paris: 57,
newYork: 86,
seoul: 21,
month: 'Jan',
},
{
london: 50,
paris: 52,
newYork: 78,
seoul: 28,
month: 'Fev',
},
{
london: 47,
paris: 53,
newYork: 106,
seoul: 41,
month: 'Mar',
},
{
london: 54,
paris: 56,
newYork: 92,
seoul: 73,
month: 'Apr',
},
{
london: 57,
paris: 69,
newYork: 92,
seoul: 99,
month: 'May',
},
{
london: 60,
paris: 63,
newYork: 103,
seoul: 144,
month: 'June',
},
{
london: 59,
paris: 60,
newYork: 105,
seoul: 319,
month: 'July',
},
{
london: 65,
paris: 60,
newYork: 106,
seoul: 249,
month: 'Aug',
},
{
london: 51,
paris: 51,
newYork: 95,
seoul: 131,
month: 'Sept',
},
{
london: 60,
paris: 65,
newYork: 97,
seoul: 55,
month: 'Oct',
},
{
london: 67,
paris: 64,
newYork: 76,
seoul: 48,
month: 'Nov',
},
{
london: 61,
paris: 70,
newYork: 103,
seoul: 25,
month: 'Dec',
},
];

const valueFormatter = (value: number | null) => `${value}mm`;

Expand Down
87 changes: 1 addition & 86 deletions docs/data/charts/bars/BarsDataset.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as React from 'react';
import { BarChart } from '@mui/x-charts/BarChart';
import { axisClasses } from '@mui/x-charts/ChartsAxis';
import { dataset } from '../dataset/weather';

const chartSetting = {
yAxis: [
Expand All @@ -16,92 +17,6 @@ const chartSetting = {
},
},
};
const dataset = [
{
london: 59,
paris: 57,
newYork: 86,
seoul: 21,
month: 'Jan',
},
{
london: 50,
paris: 52,
newYork: 78,
seoul: 28,
month: 'Fev',
},
{
london: 47,
paris: 53,
newYork: 106,
seoul: 41,
month: 'Mar',
},
{
london: 54,
paris: 56,
newYork: 92,
seoul: 73,
month: 'Apr',
},
{
london: 57,
paris: 69,
newYork: 92,
seoul: 99,
month: 'May',
},
{
london: 60,
paris: 63,
newYork: 103,
seoul: 144,
month: 'June',
},
{
london: 59,
paris: 60,
newYork: 105,
seoul: 319,
month: 'July',
},
{
london: 65,
paris: 60,
newYork: 106,
seoul: 249,
month: 'Aug',
},
{
london: 51,
paris: 51,
newYork: 95,
seoul: 131,
month: 'Sept',
},
{
london: 60,
paris: 65,
newYork: 97,
seoul: 55,
month: 'Oct',
},
{
london: 67,
paris: 64,
newYork: 76,
seoul: 48,
month: 'Nov',
},
{
london: 61,
paris: 70,
newYork: 103,
seoul: 25,
month: 'Dec',
},
];

const valueFormatter = (value) => `${value}mm`;

Expand Down
Loading

0 comments on commit 931f097

Please sign in to comment.