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

How can I use LinearGradient? #8

Closed
aka-sham opened this issue Sep 4, 2024 · 2 comments
Closed

How can I use LinearGradient? #8

aka-sham opened this issue Sep 4, 2024 · 2 comments
Labels
question Further information is requested

Comments

@aka-sham
Copy link

aka-sham commented Sep 4, 2024

Hello,

I have tried the following example from Echarts website https://echarts.apache.org/examples/en/editor.html?c=area-simple&lang=ts and I cannot use echarts.graphic.LinearGradient: how can I import it?

Best Regards,

@kingyue737
Copy link
Owner

Just import it from 'echarts/core'

import { graphic } from 'echarts/core'

You can turn on Minimal Bundle to see how the official example import the required module
image

@aka-sham
Copy link
Author

aka-sham commented Sep 5, 2024

Thank you!

@kingyue737 kingyue737 added the question Further information is requested label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants