wydsjyoung commented on issue #21753:
URL: https://github.com/apache/echarts/issues/21753#issuecomment-5726621853

   @plainheart Thanks for the design.
   I understand `jitterRng` accepts a custom RNG function returning [0,1), 
matching the signature of Math.random().
   Two possible approaches:
   1. Use seedrandom library as shown in the example.
   2. Implement a simple LCG RNG without external dependencies.
   
   The design looks flexible, and I have no objection to it.
   
   One concern: this may add extra work for ordinary users. Anyone wanting 
stable jitter positions would need to add an external library or write their 
own RNG.
   Could we add a shorthand `jitterSeed` option?
   If `jitterSeed` is set, ECharts uses its built-in seeded RNG automatically 
for most users, while keeping `jitterRng` as the advanced custom override.
   
   This is just a suggestion.
   Looking forward to this feature.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to