Skip to content

Charts: overlay mode for histograms - #88

Merged
Luen merged 1 commit into
mainfrom
histogram-overlay
Nov 2, 2026
Merged

Luen merged 1 commit into
mainfrom
histogram-overlay

Conversation

@Luen

@Luen Luen commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Closes #80.

What

  • Histogram takes a new mode: 'stack' | 'overlay' prop. The default is stack, so existing charts are unchanged.
  • In overlay mode:
    • each series is drawn from zero with a 22% fill and a 2 px stepped outline in its series colour;
    • the y-axis scales to the largest single bin rather than the stacked total;
    • the legend and hover tooltips are unchanged, still one hit area per bin listing every series.
  • Used on:
    • /tides, "When high and low tides happen": the high and low peaks no longer sit on top of each other.
    • /moon, "Bright nights vs dark nights".

Checks

  • pnpm lint, pnpm check, pnpm build and pnpm test:e2e (29, axe light/dark) pass.
  • Checked /tides in the browser with the real data.

🤖 Generated with Claude Code

Histogram takes mode='stack' | 'overlay'. Overlay draws each series from zero
with a translucent fill and a 2 px stepped outline, so distributions can be
compared directly. Used for high vs low tide times (/tides) and dark vs bright
nights (/moon).

Closes #80

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Luen
Luen merged commit 5b9ce45 into main Nov 2, 2026
5 checks passed
@Luen
Luen deleted the histogram-overlay branch November 2, 2026 23:17
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.

Charts: overlay mode for histograms

1 participant