google / charts

https://pub.dev/packages/charts_flutter
Apache License 2.0
2.81k stars 1.24k forks source link

Unexpected Errors shooting on an infinite Loop #585

Open puneet-bot opened 3 years ago

puneet-bot commented 3 years ago

image

Greetings ! While i was taking some hands on experience with the GOOGLE CHARTS i encountered this unexpected continous never ending error being called infinite times . My task was simple that creating some basic google charts on my web page while i was doing the same i assure you that i have seperate folders and kept my google js files seprately under the Javascript Folder . Thereis no issue in the normal browser that is html css rendered web page , So the problem actually arrises when i switch to the mobile view under the broswer i.e the device emulation that is just located with the inspect button (ctrl+shift+i) so whenever i select any short screen phone device like surface duo or even tablet size this unexpected error keeps coming down ... I'm totally confused why is it coming up and honestly i don't have any idea... Also it finally disappears when i reload my page but after several tries , point to be noted is that it only comes on the gauge chart only rest i have horizontal bar graph but no error on those just on this gauge chart which somehow justifies that my files paths are well seperated and procedurally called .

Looking forward for the Developers to help me and guide on this difficult situation. Thanks in advance.

dlaliberte commented 3 years ago

An infinite loop in the Gauge chart is unlikely, so it would help if you could show us enough code to be able to reproduce the issue you are seeing. If you can point at the web page that shows the problem, that might be enough. A simple example on jsfiddle would be ideal.

puneet-bot commented 3 years ago

Thank you sir for replying to my query , I am very honoured to hear from you . The files are attached below please have a look at them. It is not possible to integrate everything in one jsfiddle so i divided it into 4 Jsfiddles files . 1.The first file i.e of the gauge chart is in this link :JSFiddle - Code Playground https://jsfiddle.net/4uvt7p08/16/ , I am using it at the top of my webpage only once in center . 2.Second file i.e of the bar graph chart in this link:Edit fiddle - JSFiddle - Code Playground https://jsfiddle.net/pgtsmrbw/9/ , along with it 3 pie charts of as like this are then portrayed along with this bar graph Edit fiddle - JSFiddle - Code Playground https://jsfiddle.net/7rb9hayc/5/ 3.Again the 2.point is repeated in the same manner ... 4.Then similarly after some margin the final files of multiple gauge charts 7 to be exact are drawn Edit fiddle - JSFiddle - Code Playground https://jsfiddle.net/q9fej32d/12/ .

here in the 4th point the error that i showed you previously is coming on reload on the mobile emulation and sometimes on the continuous reload of the web browser ...I understand the problem that i showed you might not be the best way to explain my problem but i don't have any other option to show you .. if still you don't get any idea i will host it and then share you via github...The point to be noted is that the files are correctly saved and the path and id to the graphs are also correct.

Regards PUNEET ARORA

On Fri, Feb 5, 2021 at 10:02 PM Daniel LaLiberte notifications@github.com wrote:

An infinite loop in the Gauge chart is unlikely, so it would help if you could show us enough code to be able to reproduce the issue you are seeing. If you can point at the web page that shows the problem, that might be enough. A simple example on jsfiddle would be ideal.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/google/charts/issues/585#issuecomment-774141237, or unsubscribe https://github.com/notifications/unsubscribe-auth/APYDJ6RQ6FXG6BFCC6OD5NDS5QMTLANCNFSM4WJC4OXQ .

dlaliberte commented 3 years ago

I'm not seeing any problem with those jsfiddles. And since each one is independent of the others, I don't understand why you would need all of them. These are all examples from the docs as well, so they are very simple, which is good, but since I don't see any problem (either with or without mobile emulation) I don't know what might need to change.

I am assuming you are using Chrome, but if not, maybe the problem involves your browser, or maybe some extension in your browser.