-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using .Net Core 3.0 "version". no update when updating dataset from timer #38
Comments
Thanks, I'm glad you like it :)
This is expected blazor behaviour (e.g. see this (fairly old) issue). Using
I'm sorry but I don't quite understand what you mean by that. What is the "context"? What consequences of loosing "context" could you observe? |
Hi, Concerning StateHasChanged() I found it but thanks for the answer (I'm starting using Blazor ;)). Concerning the "context" I saw that I got the same thing with your sample. If I decided to hide a set of sata on a multi lines chart. Calling StateHasChanged() or adding some data (with the button), reset the hided data. How can I get a auto updated chart without losing the hided datas ? Regards, |
Your issue made me realize two things. First of all, we should've included the call to And then there's also a nasty bug I don't quite know how to fix currently. I don't really know how to fix this currently. EDIT: This third option below was my favourite but it won't work, the hidden field will just be undefined and the true value is still lost :/ I'm open to ideas and suggestions :) Now to answer the question how you can get the expected behaviour. I think the easiest way to fix it on the current version is to implement the second solution and do it by index (since there's no id). You can copy the current js, adjust it and reference it manually. |
I'd like to appologize. Since I'm watching this repository I received an email about this issue and mistook it as one in my own library. I think the things I explained still apply but I'm very sorry about the misunderstanding. Of course I also don't take credit for this library. |
I'm adding this to the backlog since we need to investigate this issue and think about a possible solution for allowing the |
I suppose the safest way would be to map the Js-side chart config to the C# config object. What concerns me there is a possible performance hit, which would occur exactly when the user interacts with the chart. A simpler solution is to register callbacks for most chart interactions and have the C#-side notified about them. In the latest release I re-introduced C# click/hover handlers. The same mechanism could be used to register a C# callback for showing/hiding a dataset. That way the C# config could be kept in sync with the js-side config. |
Am I correct that this is fixed in the latest (actually the one before that) release? Could you test it again @guz-crypto? |
This is no longer relevant as the config objects are now merged and the |
Hi,
First of all, thanks for your amazing job.
I'm trying to use your library starting from sample.
If I use a button to add values to datasets the chart is updated, but if I update the dataset from a callback (timer) the update of the chart does not work until I call StateHasChanged() but I lost the "context" of the chart.
Could you help me about his ?
Regards
The text was updated successfully, but these errors were encountered: