Skip to content

Conversation

alexfauquette
Copy link
Member

moving the scatter random data, and the line chart real world data.

I propos that some data set also export their value formatter, such that for demos that don't focus on the topic we don't need to bather defining again and again how to format dates in the axis/tooltip. We do it once for all nest to the dataset, and so latter refinement will apply to all demos

@mui-bot
Copy link

mui-bot commented Sep 12, 2025

Deploy preview: https://deploy-preview-19549--material-ui-x.netlify.app/

Bundle size report

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) ▼-1B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 🔺+1B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against f4ed1eb

if (context.location === 'tick' && context.defaultTickLabel === '') {
return '';
}
// valueFormatter: (value: number, context) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

Removing this formats 2 billion as 2G instead of 2B.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, a mistake from when I was debugging the x-axis hidden labels

import { ScatterChart } from '@mui/x-charts/ScatterChart';
import { PieChart } from '@mui/x-charts/PieChart';
import { HighlightScope } from '@mui/x-charts/context';
import scatterDataset from '../dataset/random/scatterSimson.json';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by "Simson"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ id: 7, value: 15, label: 'Series H' },
];

const itemsNumber = 8;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need to update this? Now there's only 7 items, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was useless. Probably a legacy piece of code from whene a demo was allowing modifying the number of slices

@alexfauquette alexfauquette added docs Improvements or additions to the documentation. scope: charts Changes related to the charts. labels Sep 12, 2025
Copy link

codspeed-hq bot commented Sep 12, 2025

CodSpeed Performance Report

Merging #19549 will not alter performance

Comparing alexfauquette:docs-random-dataset (f4ed1eb) with master (980daf0)1

Summary

✅ 10 untouched

Footnotes

  1. No successful run was found on master (5d0f159) during the generation of this report, so 980daf0 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@alexfauquette alexfauquette added the type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. label Sep 12, 2025
@alexfauquette alexfauquette merged commit 69a4e2b into mui:master Sep 12, 2025
22 checks passed
JCQuintas pushed a commit to JCQuintas/mui-x that referenced this pull request Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation. scope: charts Changes related to the charts. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants