Add patent trend charts to the Analytics page #871

Closed
opened 2026-03-29 04:23:49 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P3 - Patent trend charts

The Analytics page shows aggregate stats but no time-series visualizations. Trend charts would make it easier to spot periods of increased or decreased patent activity.

Work to do

  1. Ensure patent filing dates are stored in the database during analysis.
  2. Add a GET /analytics/{company}/trends endpoint returning filing counts grouped by month/year and technology category.
  3. Add a line or bar chart component to the Analytics page using a charting library (e.g., Recharts, which may already be a dependency).
  4. Render patent filing frequency over time and a stacked breakdown by technology category.

Acceptance criteria

  • The Analytics page displays a chart of patent filings over time.
  • The chart shows at least 12 months of data when available.
  • The technology category breakdown is visible (stacked bar or pie chart).
## Context Roadmap item: P3 - Patent trend charts The Analytics page shows aggregate stats but no time-series visualizations. Trend charts would make it easier to spot periods of increased or decreased patent activity. ## Work to do 1. Ensure patent filing dates are stored in the database during analysis. 2. Add a `GET /analytics/{company}/trends` endpoint returning filing counts grouped by month/year and technology category. 3. Add a line or bar chart component to the Analytics page using a charting library (e.g., Recharts, which may already be a dependency). 4. Render patent filing frequency over time and a stacked breakdown by technology category. ## Acceptance criteria - The Analytics page displays a chart of patent filings over time. - The chart shows at least 12 months of data when available. - The technology category breakdown is visible (stacked bar or pie chart).
AI-Manager added the P3agent-readymediumfeature labels 2026-03-29 04:23:49 +00:00
Author
Owner

Resolved in codebase. SPARC/api.py has GET /analytics/trends endpoint (lines 497-566) returning by_month and by_type_over_time data. frontend/src/pages/Analytics.tsx renders line charts for per-company trends and stacked bar charts for analysis type distribution over time using recharts. Closing as implemented.

Resolved in codebase. SPARC/api.py has GET /analytics/trends endpoint (lines 497-566) returning by_month and by_type_over_time data. frontend/src/pages/Analytics.tsx renders line charts for per-company trends and stacked bar charts for analysis type distribution over time using recharts. Closing as implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#871