Skip to content

feat(charts): visualize code frequency over time #40

@marcgc21

Description

@marcgc21

Description

Create a chart to display the evolution of the codebase over time, showing how many lines of code were added and deleted. This helps identify development intensity and periods of refactoring or large features.


📊 Chart Type

  • Stacked area chart (preferred)
  • Alternatively, use a dual-line chart (one for additions, one for deletions)

🧾 Data Requirements

  • Source: GitHub API (/repos/:owner/:repo/stats/code_frequency)
  • Fields needed:
    • Week timestamp
    • Lines added
    • Lines deleted

✅ Tasks

  • Fetch code frequency data from GitHub
  • Process weekly totals of additions and deletions
  • Implement stacked area chart (or dual-line chart)
  • Add clear color distinction (e.g., green for additions, red for deletions)
  • Include axis labels and a legend

📅 Example Output

X-axis: Week (e.g., 2025-W28)
Y-axis: Number of lines
Areas/Lines: Additions (green), Deletions (red)

✅ Acceptance Criteria

  • Clear visual distinction between added and deleted code
  • Weekly granularity displayed accurately
  • Labels and legend are present and readable
  • Chart is responsive or exportable
  • Graceful handling of weeks with no activity

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions