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
| Prop | Type | Default | Description |
|---|---|---|---|
| data* | readonly MMPPoint[] | — | Full MMP curve [{ seconds, watts }, …] |
| peaks | readonly MMPPoint[] | — | Highlighted peak points (e.g. at 3s, 1m, 20m) |
| width | number | 600 | Width in px |
| height | number | 300 | Height in px |
| color | string | — | Line color (default: var(--chart-1)) |
| fillOpacity | number | 0.08 | Area fill opacity |
| grid | boolean | true | Show grid lines |