-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[charts] Move dataset to distinct files in the demos #10197
Comments
I would love if someday, the data-rich components have a The data of Because for a given demo, 99% of the time the data is fixed once the component is mounted. We only have those hooks to avoid duplicate the logic for each demo. |
There is also a notion of allowing a straightforward demo copy & paste experience.
I'm connecting this to a docs-infra issue, we explored this for another problem in the past: mui/material-ui#38911. |
The main downside of the current approach being that it's hard to understand the demo code because some logic is hidden behind custom hooks that are somethings very complex ( |
@flaviendelangle When we introduced Issue created: mui/material-ui#38911. We could use a tab to host the data. |
I'm closing because most of the demos now have a dataset in a distinct file. |
@oliviertassinari: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
I was trying to understand how some of the charts of the docs were built but struggle with a lot of line to scroll associated for the data set, e.g. https://mui.com/x/react-charts/bars/#layout
I think that we should move the data set to the bottom of the page:
Examples
Context
In the future, we might want to have a custom data set.
And maybe even have it interactive:
Screen.Recording.2023-09-01.at.00.32.18.mov
https://www.chartjs.org/docs/latest/samples/scales/linear-step-size.html
Your environment 🌎
v6.0.0-alpha.9
The text was updated successfully, but these errors were encountered: