[Bug] WEB ONLINE SIMULATOR. I don't know what, but there's something wrong ๐ค
Closed this issue ยท 5 comments
Version
JavaScript Simulator
Link to Minimal Reproduction
Steps to Reproduce
Click as you want on the button "Run".
Current Behavior
Look at your browser console.
You will always read the same values!!!
Expected Behavior
For a random function the expected behavior it's a random value ๐๐๐คช๐
Environment
- OS: EACH
- Browser: Firefox, Chrome, Each one
- Framework: Random
Any additional comments?
WTF?!?!?!? Never seen anything like it.
WTF?!?!?!? Never seen anything like it.
You could run the same JS code directly in the Console. How is it related to anything ECharts ?
Hi @helgasoft.
Not agree with this. On the ECharts simulator you can see always the same result for each execution
So
WTF?!?!?!? Never seen anything like it.
That's this:
[
[
14,
15,
17,
12,
12,
-1,
-1
],
[
14,
10,
17,
14,
15,
1,
-1
],
[
15,
18,
16,
10,
18,
-1,
-1
],
[
17,
17,
11,
11,
19,
-1,
-1
],
[
20,
10,
15,
11,
17,
0,
0
],
[
12,
14,
17,
13,
15,
1,
0
],
[
15,
19,
17,
20,
15,
0,
1
],
[
15,
18,
16,
15,
19,
1,
-1
],
[
19,
11,
13,
12,
20,
1,
-1
],
[
20,
19,
13,
18,
18,
1,
1
],
[
13,
14,
15,
15,
20,
1,
1
]
]
If you check this in any other tool that offers JavaScript processing you will have a different result for each execution (also your console it's good).
Want a direct test?
Try Echarts online simulator at the link posted in the bug report.
Then test it here:
https://jsfiddle.net/hb95186n/
In the second one it will be random every time, in the first one it will always be the same result (ABSURD!!!)
You may use button Random instead of Run if you really need to test such JS code in the Editor.
The ECharts editor uses the seedrandom
library to ensure all developers get the same result. If you hope to get a different result in each run, just click the Random
button.
I was not aware of this and absolutely did not see the random button to click ๐.
What a fool. One more piece of information. seedrandom Library added to the developer repertoire.
But I have another question (not a bug) related to ECharts (support) that I will do shortly about the data set update and the disappearance of the marker.
As soon as I have a moment to create an example.
P.S. I am clicking the random button spasmodically taken by stupidity. ๐ซ ๐ฅน
Bye and thanks