Chart is very slow on initial rendering and zooming
Hello,
in our code base (Blazor WASM)
we display a chart with 5000 datapoints. It takes around 2-3 seconds for the chart to get rendered. When applying a zoom level the chart starts hanging/lagging and the whole chart becomes unusable because of rerendering of the control which takes a few seconds.
Here is the code we are talking about:
Is there some way the performance of the chart rendering process can be improved? At the moment, the chart can only be used effectively with less than 500 data points.
Hi Armin,
Thanks for using Syncfusion products.
By default, in WASM application while loading large amount of data to chart, it will take few seconds to render the chart. You can improve the runtime performance in WASM using AOT compilation. We recommend you to publish and host the application to check the performance changes.
For more information about AOT compilation, please refer the below link.
Reference Link : https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly?view=aspnetcore-7.0#ahead-of-time-aot-compilation
We have attached the tested sample for your reference.
Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/ChartPerf1039613925.zip
Note : You cannot view the performance changes in local and it can be viewed only in hosted application after enabling AOT compilation.
Please let us know if you have any concerns.
Regards,
Durga Gopalakrishnan.
- 1 Reply
- 2 Participants
-
AS Armin Stockner
- Aug 7, 2024 12:49 PM UTC
- Aug 8, 2024 10:41 AM UTC