Open arunnbabu81 opened 2 years ago
What's the differences between them? Usage of JS?
I don't know what the difference between them. Just noticed that they were not working
@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👀.
I tried these example echarts from this site -https://echarts.apache.org/examples/en/index.html
These three were not working. But many other examples were working in my wiki.
Any suggestions ?