I'm having the issue where resizing the window causes the charts to resize later with huge lag. They go step by step rendering even after the window has resized.
It is basically the same as in this topic: Stacked Chart bar bug render on resize
Notes:
- Data set is small, dictionary<string, int> with only 2 records (one for each subscription package), so that should not be the cause
- I'm using Blazor InteractiveServer, NOT WASM, so that might be what is causing the problem, maybe it requests re-rendering from the server for each resize step If that is the case, it could be solved by only requesting one render after resize is finished, like apex charts does it.
- Here is my recording of it happening: Screen Recording 2024-06-03 at 13.56.18.mov - Google Drive
I really like all the components and I would like to stick with Radzen and not use another library only for charts. That's whay I'm making this in hope that it can be fixed.
Hi @VPetrovic,
Can you provide some runnable demo that reproduces the problem? This can probably be fixed easily but we need a reproduction first. That other thread never provided one.
@korchev Thank you for quick reply. I just started creating an runnable example/demo, but for some reason it does not happen on fresh project. I'll try to compare them and see what is the difference and after what change it happens again.
I'll report as soon as I have more info.
@korchev I think I figured out when it is happening. If I resize the window fast, it is working kind of ok. But if I slowly resize the window, the problem is visible.
I would say that this is relatied to number of "resize" events fired and Radzen responding to each one of them. If we resize fast, a couple of them happen, but if we resize slowly, many resize events are fired and problem is visible.
Let me know what you think. Below I'll attach video and test project (restore packages if it shows error on build).
Video: Screen Recording 2024-06-03 at 15.43.38.mov - Google Drive
Demo code: RadzenServerCharts.zip - Google Drive
Here is what I see when I run your app - no significant delay.

By the way is this an issue that you expect to happen in your application - your users to resize the window slowly? I don't think this would ever happen.
In any case the attached application doesn't seem to reproduce the issue from the video for me or at least I don't resize the window "right".
Hmm, very interesting. I tried it now on windows PC now and it works flawlesly, it renders with 0 lag. But for some reason on my MAC it's not ok, you saw the lag on the video. It happened initially when I resized fast/normally, so that's how I noticed it. Slow resize is just my testing to see what is happening.
I'll try to investigate a bit more on my side with different machines and I'll publish the app on Azure today and see how it performs (maybe it's something related to my dev environment). So you should not put more effort into this for now. I'll report back as soon as I have more info.
Thank you for quick responses and help!
OMG, I just ran the app in release mode on my mac and it works as expected. So it is something related to debug mode on mac with jetbrains rider. On windows, debug works normally.
We can close this one as it's technically not related to the library but the environment.
Sorry if I wasted much of your time. I really appreciate the help!