Skip to content

fix(hl-perf-chart): hide users line/legend/stat when no daily unique users data - #852

Merged
Flotapponnier merged 1 commit into
devfrom
fix/hl-perf-chart-hide-empty-users
Jul 2, 2026
Merged

Flotapponnier merged 1 commit into
devfrom
fix/hl-perf-chart-hide-empty-users

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Summary

On 90d/1y the DuckDB archive does not carry per-day unique users, so peakUsers collapses to 0. The chart was still drawing a flat-zero users line, a Users legend entry, right-side Y-axis tick labels and a "Peak users / day" stat that all read 0 — misleading.

Guard the whole users overlay (line, area, hover dots, right axis, legend chip, tooltip row, footer stat) on peakUsers > 0 instead of hard-coding range === "30d". When a future upstream starts serving per-day uniques for 90d/1y it will just light up.

Test plan

  • /hyperliquid/phantom-perps on 30d: users overlay visible
  • /hyperliquid/phantom-perps on 1y: users overlay hidden, only revenue rendered
  • /hyperliquid/ccxt on 1y: users overlay hidden

@Flotapponnier
Flotapponnier merged commit 1a10462 into dev Jul 2, 2026
1 check passed
@Flotapponnier
Flotapponnier deleted the fix/hl-perf-chart-hide-empty-users branch July 2, 2026 21:42
bakabhai993 pushed a commit to bakabhai993/OpenChainBench that referenced this pull request Sep 12, 2026
…users data (ChainBench#852)

Co-authored-by: Florent Tapponnier <contact@openchainbench.com>
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.

1 participant