Skip to content

Today's Highlight: add chart per entry + expand to 36 (v2.8.0)#35

Merged
Varnasr merged 1 commit into
mainfrom
claude/highlight-charts-expand
May 29, 2026
Merged

Today's Highlight: add chart per entry + expand to 36 (v2.8.0)#35
Varnasr merged 1 commit into
mainfrom
claude/highlight-charts-expand

Conversation

@Varnasr
Copy link
Copy Markdown
Owner

@Varnasr Varnasr commented May 29, 2026

Summary

Two improvements to Today's Highlight:

1. Every highlight now has a chart

A mini ECharts visualization inside the highlight card, drawn from the relevant data series. Seven chart variants are supported:

Type Use
line Single series (formal employment, FCI, GDP, etc.)
pair Two side-by-side series (top 1% vs bottom 50%)
dual Two series on shared axis (GDP vs formal employment)
multi 3+ series with per-key normalisation (SSI/FCI/DQI)
bar-inv Inverted y-axis for rank metrics (press freedom)
csv-line Sourced from the supplementary CSVs (lazy-loaded if needed)
intl Grouped bars 2014 vs 2026 across peer countries

CSV-sourced charts auto-trigger loadCSVData() if the data hasn't been fetched yet, then re-render.

2. Expanded 14 → 36 features

Over a month of distinct daily highlights before any repeat. New coverage:

  • All 5 supplementary CSV datasets (communal incidents, opposition incarceration, education events, sanitation, cess share)
  • All 3 constructed indices with their own dedicated highlights (SSI / FCI / DQI methodology)
  • International peer comparisons on both V-Dem and RSF
  • More "did you know" angles: female LFPR decline, gig worker 11x growth, rural income flat, 2020 GDP contraction, informal employment > 89%, census 15 years overdue
  • Try-this CTAs for Era Comparison, Correlation Explorer, Human Stories
  • Categories now: Headline number, Decoupling, Compare regimes, Latest release, Try this, Under the hood, Hidden series, Compare countries, Story behind the number, Open data, Find correlations, Did you know?, Methodology, Surprise stat, Next step

Version 2.8.0.

Test plan

  • Reload home page — chart visible inside the highlight card
  • Chart matches the highlight content (e.g. inequality highlight shows top1 + bottom50 lines)
  • CSV-sourced highlights show a "Loading…" message briefly, then render
  • Footer shows "Rotates daily · 36 total"
  • Light/dark mode: chart axes and text colors flip correctly

Generated by Claude Code

Each daily highlight now renders an ECharts mini-chart inside the
card, drawn from the relevant data series. Five chart variants:

- line       single series (formal employment, GDP, FCI, etc.)
- pair       two side-by-side series (top 1% vs bottom 50%, etc.)
- dual       two series on shared axis (GDP vs formal emp.)
- multi      3+ series with per-key normalisation (SSI/FCI/DQI)
- bar-inv    inverted y-axis for rank metrics (press freedom)
- csv-line   sourced from the supplementary CSVs (lazy-loaded)
- intl       grouped bars 2014 vs 2026 across peer countries

Highlights expanded 14 -> 36. Each covers a distinct angle: every
economic indicator, all five CSV series, three constructed indices,
peer comparisons on V-Dem and press freedom, methodology angles,
"try this" CTAs, and policy next steps. Over a month of distinct
daily highlights before any repeat.

Version 2.8.0; CITATION.cff matched; CHANGELOG entry.
@Varnasr Varnasr merged commit c4c8f76 into main May 29, 2026
1 check passed
@Varnasr Varnasr deleted the claude/highlight-charts-expand branch May 29, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants