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

In some environments, Nuxt seems to have trouble rendering ECharts. #25908

Closed
hexWars opened this issue Feb 22, 2024 · 3 comments
Closed

In some environments, Nuxt seems to have trouble rendering ECharts. #25908

hexWars opened this issue Feb 22, 2024 · 3 comments

Comments

@hexWars
Copy link

hexWars commented Feb 22, 2024

Environment

  • Operating System: Windows_NT
  • Node Version: v20.10.0
  • Nuxt Version: 3.10.2
  • CLI Version: 3.10.1
  • Nitro Version: 2.8.1
  • Package Manager: npm@10.2.3
  • Builder: -
  • User Config: ssr, devtools, modules, build
  • Runtime Modules: @nuxtjs/tailwindcss@6.11.4, nuxt-icons@3.2.1
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-8ahe5c

Describe the bug

I'm not sure if it's a problem with Nuxt, but in the example, Nuxt 3 seems unable to render ECharts 5. Unfortunately, I can't seem to resolve it. I would greatly appreciate it if you could help me with this.

Additional context

No response

Logs

No response

Copy link

stackblitz bot commented Feb 22, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@danielroe
Copy link
Member

You need to give the DOM element a height/width.

Adding this fixes the issue in your reproduction:

<style>
.echart {
  width: 500px;
  height: 500px;
}
</style>

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2024
@hexWars
Copy link
Author

hexWars commented Feb 23, 2024

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants