Skip to content
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] line charts not rendering on page load, only on mouse over #14291

Closed
Firgrep opened this issue Aug 22, 2024 · 4 comments · Fixed by #14355
Closed

[charts] line charts not rendering on page load, only on mouse over #14291

Firgrep opened this issue Aug 22, 2024 · 4 comments · Fixed by #14355
Labels
bug 🐛 Something doesn't work component: charts This is the name of the generic UI component, not the React module!

Comments

@Firgrep
Copy link

Firgrep commented Aug 22, 2024

Steps to reproduce

Link to live example: (required)

https://github.com/Firgrep/graph-test

git clone https://github.com/Firgrep/graph-test.git

Steps:

  1. npm i
  2. npm run dev
  3. go to localhost:3010 and observe (try refresh and mousing over to see difference)

Current behavior

Line chart does not render on page load (but the bar chart renders as expected). Only renders when I mouse over the line chart.

Expected behavior

To render on page load, just as in the documentation.

Context

Running in a next.js server. Not sure if that's an issue here. I have tried to turn the whole page "use client" but that didn't make a difference.

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Browser: Chrome

  System:
    OS: Linux 6.6 Arch Linux
  Binaries:
    Node: 20.15.0 - /usr/bin/node
    npm: 10.8.1 - /usr/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: Not Found
  npmPackages:
    @emotion/react: ^11.13.0 => 11.13.0
    @emotion/styled: ^11.13.0 => 11.13.0
    @mui/core-downloads-tracker:  5.16.7
    @mui/material: ^5.16.7 => 5.16.7
    @mui/private-theming:  5.16.6
    @mui/styled-engine:  5.16.6
    @mui/system:  5.16.7
    @mui/types:  7.2.15
    @mui/utils:  5.16.6
    @mui/x-charts: ^7.13.0 => 7.13.0
    @mui/x-charts-vendor:  7.13.0
    @types/react: ^18 => 18.3.3
    react: ^18 => 18.3.1
    react-dom: ^18 => 18.3.1
    typescript: ^5 => 5.5.4

Search keywords: charts

@Firgrep Firgrep added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 22, 2024
@github-actions github-actions bot added the component: charts This is the name of the generic UI component, not the React module! label Aug 22, 2024
@michelengelen
Copy link
Member

@JCQuintas I can reproduce this in the repo shared here, but not in our implementation (playground). Could you have a look?

@JCQuintas
Copy link
Member

Related to #13477, #12873, #12892

It seems there is an issue with line animation in some cases. We need to take a closer look into it.

@michelengelen
Copy link
Member

I'll move it to the board! Thanks! 👍🏼

Copy link

⚠️ This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

@Firgrep: 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: charts This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants