Skip to content
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

updateSeries stopped working after one of the most recent commits #4866

Open
noefp opened this issue Dec 12, 2024 · 8 comments
Open

updateSeries stopped working after one of the most recent commits #4866

noefp opened this issue Dec 12, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@noefp
Copy link

noefp commented Dec 12, 2024

Description

updateSeries stopped working after one of the most recent commits

Steps to Reproduce

my_chart.updateSeries(
new_series_data
)

Expected Behavior

The plot renders again showing the new series data

Actual Behavior

The plot does not update the data

Reproduction Link

For example, at:
https://mangobase.org/easy_gdb/tools/expression/expression_input.php

Click in Get Expression.

Then open the Replicates section and change any of the gene names in the select. Usually that would update the data in the plot. It still works with an old version of apexcharts.min.js installed locally, but it stopped working recently using the cdn link.

@noefp noefp added the bug Something isn't working label Dec 12, 2024
@junedchhipa
Copy link
Contributor

Can you create a reproducible codepen?

@TheodoreRed
Copy link

TheodoreRed commented Dec 13, 2024

I am seeing a similar problem. I change back to version 4.1.0 and it worked fine.

@Rakesh-HR
Copy link

I am experiencing the same issue as well. The console log from @noefp's reproduction is identical to mine. Changing the version back to 4.1.0 has worked for me too.

@djowebdev
Copy link

Same for me, now including explicitly https://cdn.jsdelivr.net/npm/[email protected]/dist/apexcharts.min.js works again.

Error message I get:

apexcharts:6 Uncaught TypeError: Cannot read properties of undefined (reading '0')

Failing here:
chart.updateSeries([{ data: chartData.seriesData[0].data, name: chartData.seriesName, }]);

@minhdqtt
Copy link

minhdqtt commented Dec 19, 2024

same with me, and I must back to 4.1.0. The error is:
apexcharts.min.js:6 Uncaught TypeError: Cannot read properties of undefined (reading '0')
at apexcharts.min.js:6:518169
at Array.map ()
at t.value (apexcharts.min.js:6:518088)
at t.value (apexcharts.min.js:38:35390)
Note that update series data only is fine, but if update labels it got error

@erwal45
Copy link

erwal45 commented Dec 19, 2024

hi, same error for me, back to 4.1.0

@junedchhipa
Copy link
Contributor

Can anyone test with the latest version 4.4.0 and report if it works?

@Rakesh-HR
Copy link

Seems to be working now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants