Mean maximal power

Power-vs-duration curve on a log X scale with peak-power dots at standard durations. Self-contained SVG (no ChartRoot).

Primitive: ChartMMP· Standalone (no ChartRoot needed)

Interactive demo

Usage

import { ChartMMP } from '@ramtt/charts'

<ChartMMP
  data={curve} // [{ seconds, watts }, …]
  peaks={peaks}
  width={600}
  height={300}
/>

Props

PropTypeDefaultDescription
data*readonly MMPPoint[]Full MMP curve [{ seconds, watts }, …]
peaksreadonly MMPPoint[]Highlighted peak points (e.g. at 3s, 1m, 20m)
widthnumber600Width in px
heightnumber300Height in px
colorstringLine color (default: var(--chart-1))
fillOpacitynumber0.08Area fill opacity
gridbooleantrueShow grid lines