Skip to content
Back

Metrics DashboardPro

Work screens / Metrics dashboard: a web analytics overview. A date range (7 days to 12 months) and Export, five KPI tabs (visitors, page views, signups, bounce rate, visit duration) over one chart with hover readouts, drag across to zoom and a Compare switch for the period before, then pages, sources and places with inline bars. Saved views in the sidebar set the range; an Online now card sits above the account.

oxyn add metrics-dashboard
  1. Lumenfield
  2. Overview
2026-10-13 to 2026-11-11
VisitorsDrag across the chart to zoom
Visitors
Visitors
Visitors
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • Read a site's traffic at a glance and dig into one metric over a chosen period.

When not to use

  • Mail folders with counts and labels beside a message list: use Inbox sidebar instead.
  • The app frame: use App shell instead.
  • An assistant docked beside a page: use AI side panel instead.

Installation

Metrics Dashboard is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add metrics-dashboard

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Sample

Sample data, the page as an inset card beside the sidebar.

  1. Lumenfield
  2. Overview
2026-10-13 to 2026-11-11
VisitorsDrag across the chart to zoom
Visitors
Visitors
Visitors
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Flat

The same view with the page edge to edge.

  1. Lumenfield
  2. Overview
2026-10-13 to 2026-11-11
VisitorsDrag across the chart to zoom
Visitors
Visitors
Visitors
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Loading

Skeletons where the data lands.

  1. Lumenfield
  2. Overview
2026-10-13 to 2026-11-11
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Empty

A first run: what will show here and how to start.

  1. Lumenfield
  2. Overview
2026-10-13 to 2026-11-11

No visits yet

Add the tracking snippet to your site; visits show here within a minute.

Visitors

No pages yet

    Visitors

    No referrers yet

      Visitors

      No countries yet

        Code Pro
        The code is part of Oxyn Pro

        The preview is free. Pro opens the code of every Pro component, screen and template.

        Get Pro

        Compare

        The previous period drawn dashed under the current one.

        1. Lumenfield
        2. Overview
        2026-10-13 to 2026-11-11
        VisitorsPrevious periodDrag across the chart to zoom
        Visitors
        Visitors
        Visitors
        Code Pro
        The code is part of Oxyn Pro

        The preview is free. Pro opens the code of every Pro component, screen and template.

        Get Pro

        Zoomed

        A dragged window of two weeks, with Reset zoom.

        1. Lumenfield
        2. Overview
        2026-10-13 to 2026-11-11
        Visitors
        Visitors
        Visitors
        Visitors
        Code Pro
        The code is part of Oxyn Pro

        The preview is free. Pro opens the code of every Pro component, screen and template.

        Get Pro

        Exported

        Export done: the button turns to Exported and the file name shows.

        1. Lumenfield
        2. Overview
        metrics-2026-10-13-to-2026-11-11.csv · 2026-10-13 to 2026-11-11
        VisitorsDrag across the chart to zoom
        Visitors
        Visitors
        Visitors
        Code Pro
        The code is part of Oxyn Pro

        The preview is free. Pro opens the code of every Pro component, screen and template.

        Get Pro

        API reference

        MetricsDashboardScreen

        PropTypeDefaultDescription
        layoutString"inset"`inset` or `flat`.
        stateString"sample"A state key.

        Read from the Rust signature and doc comments.

        Keyboard interactions

        KeyAction
        TabRange, Export, the KPI tabs, Compare, then each table's tabs and rows
        EscapeClose the range or filter menu

        Accessibility

        • The KPI tabs are a tablist; the chart is an image named for its metric and dates.
        • Compare is a switch; zoom resets with a labelled button.
        • Every action reports in a polite live region.

        Responsive behaviour

        • Authored on the 1440 × 900 canvas: a 248 px sidebar, the page as an inset card and, where the screen has one, a 328 px right card in the gutter.
        • Under 960 px the sidebar becomes a drawer from the header's menu button and the right card hides.
        • Under 640 px header actions turn into icon buttons, grids drop to one column and labels ellipsise.
        Edge cases (spec)

        Authored on the 1440 × 900 stage and scaled to its column; /full renders at the real viewport. Under 960 px the sidebar is a drawer from the header's menu button (Escape or the scrim closes it). Under 960 px the five KPI tabs stay in one row with tighter padding; under 640 px they wrap into two columns (Visit duration spans both), so none is cut off or hidden behind a sideways scroll. Under 640 px header actions become icon buttons, the meta line hides and grids drop to one column. scripts/ovl.py finds no text overlap at 1440, 768 and 390 in light and dark.

        Notes for AI

        • Import MetricsDashboardScreen from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
        • A GPUI version exists: MetricsDashboardEl in oxyn_gpui.
        • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

        Guides

        Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI