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

Some of the example echarts not working #41

Open
arunnbabu81 opened this issue Apr 28, 2022 · 3 comments
Open

Some of the example echarts not working #41

arunnbabu81 opened this issue Apr 28, 2022 · 3 comments
Labels
good first issue Good for newcomers

Comments

@arunnbabu81
Copy link

arunnbabu81 commented Apr 28, 2022

I tried these example echarts from this site -https://echarts.apache.org/examples/en/index.html

  1. https://echarts.apache.org/examples/en/editor.html?c=calendar-pie
  2. https://echarts.apache.org/examples/en/editor.html?c=bar-race-country
  3. https://echarts.apache.org/examples/en/editor.html?c=bar-label-rotation

These three were not working. But many other examples were working in my wiki.

Any suggestions ?

@linonetwo
Copy link
Contributor

What's the differences between them? Usage of JS?

@arunnbabu81
Copy link
Author

I don't know what the difference between them. Just noticed that they were not working

@Gk0Wk
Copy link
Collaborator

Gk0Wk commented May 3, 2022

@arunnbabu81 Well, the answer is simple: the [Edit Code] section is not necessarily the most complete code, the [Full Code] section is - for example, in the first example, if you copy the [Code Edit] section directly, you will get an error app is not defined, if you go to the [ Full Code] you will find that you should actually add a line const app={}; at the top.

So is it possible to just copy [Full Code]? The answer is no, that would also be an error.

So my advice is that you should start with simple examples and learn some JavaScript syntax - or, you can bring confusing examples to Discussions👀.

@Gk0Wk Gk0Wk added the good first issue Good for newcomers label May 3, 2022
@Gk0Wk Gk0Wk pinned this issue May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants