[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Charts Visualization on IRStats - Abstract Pages - Chrome

Sorry, I provided the wrong line number in the trace, same command, but the one on this line (263):


the call to new google.visulization.DataTable() in EPJS_Stats_GoogleGraph = Class.create(EPJS_Stats,


From: Tomasz Neugebauer
Sent: June 18, 2020 3:52 PM
To: eprints-tech at ecs.soton.ac.uk
Subject: Charts Visualization on IRStats - Abstract Pages - Chrome

I've been trying to track down a problem with loading of download summary table visualization on abstract pages and I can't seem to figure it out.
The problem only seems to appear in Google Chrome, on Firefox and Edge all is well.
On Chrome, however, the graph visualizations don't appear on the abstract pages, most of the time.
Clicking on "Reload" will make it appear every now and again, so the issue is intermittent to some extent; but mostly the loader just keeps spinning and it doesn't appear.
I have tried to track down the issue, and as far as I see, the XHR call to getData works fine, and data is returned without problems, and passed to the correct functions.
The problem appears right at this line:

                   var data = new google.visualization.DataTable();

So line 328 in this file: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Firstats2%2Fblob%2F74ce563ff855f7ba9702c4cd98532e95a17166a3%2Flib%2Fstatic%2Fjavascript%2Fauto%2F90_irstats2.js%23L328&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce79a46bf30e04213a6b908d813c1fff6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=QBSiuFwSerGRab63m5O8F3So3RiSXYuSYrPvFhCaD%2BU%3D&reserved=0
When I put a "Break" (in the debugger in the browser) on this line, I see that it is reached, and the retrieved data (about downloads) is there in the function, but the browser almost never comes back from this line and reaches no subsequent break points. Sometimes it does come back, reaches the next line, and then stops, and then sometimes, it does keep going to the end and then the graph does display.

I tried disabling the CoreRecommender, as there are some warnings in Chrome about SameSite settings/cookies on that (not sure what that is all about either), in case that was the cause, but it didn't change anything.  I also tried changing how Google Charts / JSAPI is included/loaded, the version number of the library, but nothing seems to fix it.

Any ideas?  Do you display a chart of downloads on abstract pages, and is it working well in Chrome?


Tomasz Neugebauer
Digital Projects & Systems Development Librarian / Biblioth?caire des Projets Num?riques & D?veloppement de Syst?mes
Library / Biblioth?que
Concordia University / Universit? Concordia
Tel. / T?l. 514-848-2424 ext. / poste 7738
Email / courriel: tomasz.neugebauer at concordia.ca<mailto:tomasz.neugebauer at concordia.ca>
Mailing address / adresse postale: 1455 De Maisonneuve Blvd. W., LB-540-03, Montreal, Quebec H3G 1M8
Street address / adresse municipale: 1400 De Maisonneuve Blvd. W., LB-540-03, Montreal, Quebec H3G 1M8

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200618/8fcd249a/attachment-0001.html