You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered several performance issues with the update function of chart.js. I developed my own zoom system but the problem is the following (same problem with the zoom plugin), since a large number of updates are made (one per scroll), then the zoom bug.
My hypothesis is that the update function was planned to refresh the data, knowing that mine are large, but I only need to refresh the scales.
Indeed when we do a performance analysis with the developer tool we can see that 83% of the time is taken by the update function, and more precisely 77% comes from the call to a function named _updateDatasets which I think does not need to be called since we only want to change the scales and not the datas.
Maybe my assumption is wrong, in any case I would like to know if you know a way either to perform an update on a specific element of the chart, or if there is another function than update that is more suitable for my case , or even maybe another solution.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I encountered several performance issues with the update function of chart.js. I developed my own zoom system but the problem is the following (same problem with the zoom plugin), since a large number of updates are made (one per scroll), then the zoom bug.
My hypothesis is that the update function was planned to refresh the data, knowing that mine are large, but I only need to refresh the scales.
Indeed when we do a performance analysis with the developer tool we can see that 83% of the time is taken by the update function, and more precisely 77% comes from the call to a function named _updateDatasets which I think does not need to be called since we only want to change the scales and not the datas.
Maybe my assumption is wrong, in any case I would like to know if you know a way either to perform an update on a specific element of the chart, or if there is another function than update that is more suitable for my case , or even maybe another solution.
Beta Was this translation helpful? Give feedback.
All reactions