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

Version 4.0.0 introduces "'appendChild' on 'Node': parameter 1 is not of type 'Node'" issue #4828

Closed
mrash opened this issue Nov 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mrash
Copy link

mrash commented Nov 24, 2024

Description

In Apexcharts version 4.0.0 there is a new issue related to chart.render() where the error "'appendChild' on 'Node': parameter 1 is not of type 'Node'" is thrown.

Steps to Reproduce

  1. Use the ap_pie.html file in this gist.
  2. By default, the ap_pie.html file points to the CDN to acquire Apexcharts.
  3. Note that the pie chart to the right of the area chart is not rendered. In a browser console, the error "'appendChild' on 'Node': parameter 1 is not of type 'Node'" is thrown.
  4. This issue does not happen in Apexcharts 3.54.1 and prior releases. Perhaps this is related to the Svgjs 3.2 upgrade? If so, what is the proper way to use chart.render()?

Expected Behavior

The expected behavior is for the pie chart to be rendered from the ap_pie.html file in this gist. In Apexcharts 3.54.1 and previous releases, the pie chart is rendered.

Actual Behavior

When pointing to Apexcharts 4.0.0 (via the CDN which the ap_pie.html file does by default), the pie chart is not rendered, and the "appendChild" error mentioned above in the description is thrown.

Screenshots

Here is a screenshot using Apecharts 3.54.1:
Screenshot 2024-11-24 at 6 05 55 PM

Here is a screenshot of the same file but using Apexcharts 4.0.0 (via the CDN):
Screenshot 2024-11-24 at 6 01 16 PM

Reproduction Link

The ap_pie.html file in this gist reproduces the problem and was used to create the screenshots above.

@mrash mrash added the bug Something isn't working label Nov 24, 2024
@junedchhipa junedchhipa reopened this Nov 25, 2024
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

2 participants