BPT

Date Axis Chart

BptChartDateAxis

Date-axis line/area chart — each point's X position is proportional to its timestamp on a true calendar scale (not a fixed slot). Switch the span (one day, one month, two years) to see the date-tick generator adapt to years, days, or hours. Built on the BPT chart foundation.

Date Axis Chart Parameters
Current Configuration
📋
<BptChartDateAxis Data="@Data"
                  Width="680"
                  Height="380"
                  FillArea="true"
                  Smoothing="true"
                  XAxisLabel="Date"
                  YAxisLabel="Reading"
                  Title="Sensor reading — Six months span"
                  OnElementClick="HandleClick" />

@code {
private readonly IReadOnlyList<BptChartDatePoint> Data = new BptChartDatePoint[]
{
    new(X: new DateTime(2026, 1, 1), Y: 48),
    new(X: new DateTime(2026, 2, 1), Y: 54),
    new(X: new DateTime(2026, 3, 1), Y: 51),
    // …
};

private void HandleClick(BptChartElementEvent e) {
    // Click handler — fires regardless of TooltipMode.
}
}
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.