Enhance trend subcommand with bar charts, line graphs, and trend indicators#32
Merged
CallMeGreg merged 5 commits intomainfrom Mar 24, 2026
Merged
Conversation
…cators - Add asciigraph dependency for multi-series ASCII line charts - Add trend summary table with color-coded ▲/▼/● indicators and YoY change - Add horizontal bar chart (pterm) for most recent year's top languages - Add multi-series line graph showing language trajectories over time - Enhance year-by-year detail tables with trend indicators - Update README with new trend command documentation Co-authored-by: CallMeGreg <110078080+CallMeGreg@users.noreply.github.com> Agent-Logs-Url: https://github.com/CallMeGreg/gh-language/sessions/b7e04ac5-70e4-4e93-86f7-1a2433f7a590
Co-authored-by: CallMeGreg <110078080+CallMeGreg@users.noreply.github.com> Agent-Logs-Url: https://github.com/CallMeGreg/gh-language/sessions/b7e04ac5-70e4-4e93-86f7-1a2433f7a590
…cators Co-authored-by: CallMeGreg <110078080+CallMeGreg@users.noreply.github.com> Agent-Logs-Url: https://github.com/CallMeGreg/gh-language/sessions/b7e04ac5-70e4-4e93-86f7-1a2433f7a590
Copilot created this pull request from a session on behalf of
CallMeGreg
March 24, 2026 12:24
View session
…es multiple languages
CallMeGreg
approved these changes
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR overhauls the
trendsubcommand to make language trend results more visually appealing and easier to follow. The new output clearly shows which languages are rising or falling year over year through four complementary visualization sections:New Visualizations
Trend Summary Table — A high-level view of each top language with color-coded trend indicators (▲ rising in green, ▼ falling in red, ● unchanged in gray) and year-over-year change values.Horizontal Bar Chart — A visual bar chart comparison of language counts for the most recent year, using pterm's built-inBarChartPrinterwith distinct colors per language.Multi-series Line Graph — An ASCII line chart powered by the new asciigraph library, showing how each language's adoption trajectory changes across years. Supports colored series lines and a legend.
Year-by-Year Breakdown — Enhanced per-year detail tables that now include trend direction (▲/▼/●) and signed YoY change compared to the prior year.
Mockup
Below is a mockup showing all four sections with sample data:
Changes
github.com/guptarohit/asciigraphv0.8.1 for multi-series ASCII line graphscmd/trend.go: Refactored into focused rendering functions (renderTrendSummary,renderBarChart,renderLineGraph,renderYearTables) with helpers (trendIndicator,topLanguageNames,barColors,graphColors)README.md: Updated trend command documentation with descriptions of all four visualization sectionsSecurity
Release Type