apache/echarts

[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

https://echarts.apache.org/examples/en/editor.html?code=CYQwLiAEC8kNoF0DcAoFAzArgOwMZgEsB7bSAJxG2CIFsBJbMAMTNobAFMyA3EAGwAUNAtgA0kGiAAeASkgBvSCkjkOYTGVIBZcAAsAdOj5EiZATrAGKVWgLkAqSEOmQAtBJGQA1JACMcn2FsGVQAXzQsPEISSBBgYAB9AAciETA7eWVIbl8YckpqekYWNkYuXkFfAAZxACYqkKzuWrzrQvYSos4efgFquobUFW4AZlaC0uZWLvLe_sh6xuGAFnGbLs72WcqahcGmgFY19uLprZ6dgaXsgDZjyc2yi4FXX3F_IeyAdnuNs6eKi83n5rqAIPokpgAM66ARwHLiZqIkaI5aIg6Im6Ir4IRrhDCmJx8NSQAh5KpIUmQAA8sGqlIIXi8ckUcUSKTSdkp-NwJChRGJ-mMAHMBGCQCEgA

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