DSACMS / metrics

Experimentations in Open Source Repository Metrics
https://dsacms.github.io/metrics/
Other
6 stars 2 forks source link

Fix Incorrect Hover-Text in Pygals Gauge Graphs #58

Closed IsaacMilarky closed 9 months ago

IsaacMilarky commented 9 months ago

Fix Incorrect Hover-Text in Pygals Gauge Graphs

Closes #56

Problem

The text that appears when hovering over portions of a solid gauge graph generated by the update script was incorrect previously. Previously, the text was the title of the graph regardless of the selected portion of the graph.

Solution

I have added respective labels to the closed/merged portions of the closed and merged pull request solid gauge graph. The merged section now displayed the text "Merged Pull Requests" when hovered over instead of the title of the graph only. The closed pull request section now displays the text "Closed Pull Requests" when hovered over.

Result

Now the generated solid gauge graphs have the proper labels:

Screen Shot 2023-11-27 at 3 46 53 PM