amcharts / amcharts4

The most advanced amCharts charting library for JavaScript and TypeScript apps.
https://www.amcharts.com/
1.16k stars 321 forks source link

Error on chart click #4416

Open AndreaChumioque opened 3 weeks ago

AndreaChumioque commented 3 weeks ago

Bug description

Error shows in the console when clicking any part of the chart. The graph renders correctly but the error keeps showing.

Uncaught TypeError: n.includes is not a function
    at index.js:2:1
    at Array.some (<anonymous>)
    at HTMLDocument.<anonymous> (index.js:2:1)

I am working with React 17.0.2, getting the data from an API and using amcharts4 version 4.10.22.

Has anyone seen an error like this or knows where it may be coming from?

martynasma commented 3 weeks ago

Would you be able to post your whole chart and data on CodePen/jsFiddle so that we can test?

AndreaChumioque commented 2 weeks ago

This would be the code on CodeSanbox

I have not been able to reproduce the issue in the sandbox, but in my project code I tried copying the implementation from a demo, to rule out that the implementation from my original chart could be wrong, but with the demo code I am still getting the same error.

martynasma commented 2 weeks ago

We'll need a way to reproduce it, I'm afraid.

AndreaChumioque commented 6 days ago

I will try to do that, thanks!