-
Notifications
You must be signed in to change notification settings - Fork 91
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
Bug: Using dynamic options fails in v5.1.0 #577
Comments
Hi, I believe I know what has changed, I'll take a look. I would not recomend set it up like this, It's better to have one chart options object per component. |
The issue there is that I have several situations where I use a foreach loop. This is fairly common and the amount of datapoints is variable. Additionally, when supporting multiple grouping options the charts need to change as well. Using the @foreach (KeyValuePair<long, object> group in GetGroups())
{
<div @key=group.Key>
<ApexChart />
</div>
} Would your recommendation be to use a dictionary to store the options and datapoints? |
having similar exception as reported above, I don't have any code changes, just nuget update and the chart fails to load the second time around, it loads fine on first nav, but coming back to the page a second time around throws the exception. What I noticed is that chart: id is missing the second time around I tried disposing the chart when changing page after implementing IDisposable, but result is the same |
I recently updated my NuGet package from version 3.5.0 to version 5.1.0 and on any charts that use dynamic options an error occurs either right away or on data being changed. This worked without issue in 3.5.0.
The chart is implemented as follows. I also tried changing the
Items=
to use a collection that is a property of the component; but that did not help.The options function looks like this.
The text was updated successfully, but these errors were encountered: