DSACMS / metrics

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

Add Donut Graphs for Repository Line Makeup #96

Closed IsaacMilarky closed 4 months ago

IsaacMilarky commented 4 months ago

Add Donut Graphs for Repository Line Makeup

Problem

There was no line composition graph to match the line composition metrics that were recently added.

There was also a minor bug in the issue gathering logic.

Solution

Add another graph generation method to create a PyGals Pie chart with an inner radius. The values of the line composition are calculated from the previously gathered metrics.

Result

Alter the class definitions for RangeMetric and ListMetric to fix a niche bug where tuples were combined in the larger list generated as is the behavior for RangeMetric.

Add the aforementioned Pie graph with the proper radius set. The three pie sections are: comments, blank lines, and other. Here is an example of the donut graph: total_line_makeup_metrics_data

IsaacMilarky commented 4 months ago

Ran ./update.sh and all LGTM! Is it possible to decrease the width of the donut so that the legend text is not cut off?

That should be possible I will look into it

IsaacMilarky commented 4 months ago

@natalialuzuriaga Here is what the graph looks like now:

total_line_makeup_metrics_data