-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[docs] Group demos data into the dataset folder #19549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Deploy preview: https://deploy-preview-19549--material-ui-x.netlify.app/ Bundle size report
|
if (context.location === 'tick' && context.defaultTickLabel === '') { | ||
return ''; | ||
} | ||
// valueFormatter: (value: number, context) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed the "p" of Simpson
{ id: 7, value: 15, label: 'Series H' }, | ||
]; | ||
|
||
const itemsNumber = 8; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
CodSpeed Performance ReportMerging #19549 will not alter performanceComparing Summary
Footnotes |
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