-
Notifications
You must be signed in to change notification settings - Fork 19.8k
[Bug] Using dataset with random numbers is mush slower #20175
Copy link
Copy link
Closed as not planned
Labels
bugenThis issue is in EnglishThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.
Description
Version
5.5.1
Link to Minimal Reproduction
Steps to Reproduce
I find that if I use random numbers as dataset, like Math.random(), the line chart rendering will be very slow. But using dataset with some pattern, like Math.sin(i), it will be much faster.
Please have a look at the demo: demo. Uncomment line 7, and comment line 8.
Am I doing something wrong or this is a performance issue?
Current Behavior
Using random numbers as dataset will be much slower.
Expected Behavior
The performance should be the same.
Environment
- OS:
- Browser:
- Framework:Any additional comments?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugenThis issue is in EnglishThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.
Type
Fields
Give feedbackNo fields configured for issues without a type.