Big movers
rising vs falling audio
Route 5
GET /api/trend-audio-comparisonRising vs. falling audio feature comparison
Rising vs falling rows use chart-week movement (better rank vs prior week). Optional filters narrow chart dates or highlight one audio metric in avg_metric_value.
Params map to RPC start_date, end_date, metric, limit_n.
D = Danceability, E = Energy, V = Valence, T = Tempo (BPM), L = Loudness (dB)
Bar height uses absolute scales (not “which cohort is larger”): D / E / V fill the track as a fraction of 0–1; T uses 200 BPM as full height; L maps about -60 dB to 0 dB. Hover a bar for the exact average.
Rising vs falling averages
| feature | rising avg | falling avg | difference |
|---|---|---|---|
| danceability | … | … | … |
| energy | … | … | … |
| valence | … | … | … |
| tempo (bpm) | … | … | … |
| loudness (dB) | … | … | … |
The RPC aggregates only rising and falling cohorts (new_or_unknown / unchanged are excluded from results).