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

Fixes Google Image Line Chart #3974

Merged
merged 4 commits into from
Apr 15, 2024

Conversation

milospp
Copy link
Contributor

@milospp milospp commented Apr 11, 2024

VIVO GitHub issue 3973

What does this pull request do?

Fixes Google Chart API
image

Google chart API for generating QR code is replaced with quickchart.io.

Google Chart Sparkline image has been replaced with a Google LineChart due to the discontinuation of the Google API Chart API server, which is no longer available for generating images (Line Chart generates SVG locally). Graphs are configured to be identical as they were before.

Fixed no chart view (only text) mode. There was a problem with loading libraries.
Screenshot 2024-04-11 at 20 57 47

What's new?

The chart on hover shows detailed info
image

How should this be tested?

  • Open any individual profile page (that has at least 1 publication in the last 10 years)
  • Check if the publication graph is shown on the right side
  • Open Co-author Network and check if publciations and co-authors graphs are shown

Screenshoots

QR codes are generated with quickchart.io
Screenshot 2024-04-11 at 20 32 32

Before (coppied from this VIDEO, that's why picture is dull):
Screenshot 2024-04-11 at 20 32 32

After:
Screenshot 2024-04-11 at 20 34 01Screenshot 2024-04-11 at 20 41 19

@litvinovg litvinovg self-requested a review April 12, 2024 07:03
Copy link
Collaborator

@litvinovg litvinovg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QR Code is rendered. Publication chart is displayed on person profile and co-author network page.
Tested on themes Wilma, Tenderfoot, Vitro, Nemo.
Looks good to me.

Copy link
Contributor

@chenejac chenejac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@milospp thanks for this quick fix. It works very well. No complaints/suggestions from my side for the code. I suggest merging this into the main branch as soon as possible as a fix for the bug. Later, we can discuss whether we can apply just one approach for all images (quickchart.io API or a library).

@litvinovg litvinovg merged commit d8ddc2c into vivo-project:main Apr 15, 2024
4 checks passed
@chenejac chenejac linked an issue Apr 15, 2024 that may be closed by this pull request
chenejac pushed a commit that referenced this pull request Apr 22, 2024
* Replaced googleapis chart with quickchart.io

* Updated to quickchart

* Fixed nochart publication count

* Replaced ImageSparkline with LineChart
ssvivian pushed a commit to projetos-codic-ibict/VIVO that referenced this pull request Jul 2, 2024
* Replaced googleapis chart with quickchart.io

* Updated to quickchart

* Fixed nochart publication count

* Replaced ImageSparkline with LineChart
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

Successfully merging this pull request may close these issues.

Google image charts API not working anymore
3 participants