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

[HELP] RangeError: Maximum call stack size exceeded (in Angular 18) | there is an issue with "responsive properties" #349

Open
dyazincahya opened this issue Aug 14, 2024 · 10 comments

Comments

@dyazincahya
Copy link

dyazincahya commented Aug 14, 2024

Using

  • angular 18.1.0
  • node.JS 22
  • apexchart 3.52.0
  • ng-apexchart 1.11.0

Situation

This error appears when I try to display 2 or more dynamic charts in the same page.

Error

I have an error like this

RangeError: Maximum call stack size exceeded
    at Object.toString (zone.js:2850:37)
    at Function.value (apexcharts.common.js:6:4661)
    at Function.value (apexcharts.common.js:6:5483)
    at Function.value (apexcharts.common.js:6:5540)
    at Function.value (apexcharts.common.js:6:5694)
    at Function.value (apexcharts.common.js:6:5694)
    at Function.value (apexcharts.common.js:6:5694)
    at Function.value (apexcharts.common.js:6:5540)
    at Function.value (apexcharts.common.js:6:5694)
    at Function.value (apexcharts.common.js:6:5694)
@dyazincahya
Copy link
Author

dyazincahya commented Aug 15, 2024

[SOLVED] <> [TEMPORARY SOLUTION]

This error is caused by the responsive property,

responsive: [
        {
          breakpoint: 480,
          options: {
            chart: {
              width: 200
            },
            legend: {
              position: "bottom"
            }
          }
        }
      ]

after I deleted the responsive property the chart appeared normally.

I think there is something in the responsive property, especially for pie and donut type charts.

@dr-bharada
Copy link

It true
image

@dyazincahya dyazincahya reopened this Aug 28, 2024
@dyazincahya dyazincahya changed the title [HELP] RangeError: Maximum call stack size exceeded (in Angular 18) [HELP] RangeError: Maximum call stack size exceeded (in Angular 18) | there is an issue with "responsive properties" Sep 2, 2024
Copy link

github-actions bot commented Nov 1, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@dyazincahya
Copy link
Author

hmm

@krystijansen
Copy link

Has a solution been found for this? Experiencing the same thing using Vue3 and the responsive property on Pie/Donut charts.

@dyazincahya
Copy link
Author

@krystijansen for temporary solution, try delete the responsive property and the chart will appeared normally.

Copy link

github-actions bot commented Jan 7, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@QuasiSquirrel
Copy link

QuasiSquirrel commented Jan 13, 2025

I have come across this error recently as well using Blazor ApexCharts, the C# wrapper for the JavaScript library. Solution for me was to create two separate graphs and display them via responsive css, which is obviously not ideal. Would appreciate it if this could get fixed.

@JGex
Copy link

JGex commented Jan 15, 2025

Same for me with Vue3 and vue3-apexcharts, but with the bar chart
I removed the responsive property, but it's clearly not a solution

-> Ok, i've updated to 4.3 and I do not have the error with bar chart

@dyazincahya
Copy link
Author

dyazincahya commented Jan 16, 2025

Same for me with Vue3 and vue3-apexcharts, but with the bar chart I removed the responsive property, but it's clearly not a solution

-> Ok, i've updated to 4.3 and I do not have the error with bar chart

Try donut or pie chart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants