---
title: "TrendPoint"
description: "One reading in a series, for the components that draw change over time."
url: "https://opsinjs.pensievelabs.org/reference/api/TrendPoint"
source: "https://opsinjs.pensievelabs.org/reference/api/TrendPoint.md"
section: "Reference"
kind: "reference"
---

> Elements written as `<PascalCase … />` below are opsinjs documentation
> components. Their attributes are the content: the values they render are
> generated from `tokens/*.json` and `registry/catalogue.ts` and are
> published separately at https://opsinjs.pensievelabs.org/r/index.json and under the Reference
> section.
> Nothing is missing from this page. The data simply does not live in
> the prose.

{/* GENERATED - do not edit. Source: the declaration named in the table below.
    Script: scripts/build-reference.mts. Change the doc comment on the symbol. */}

<PageTemplate kind="reference" />

## How this is generated [#how-this-is-generated]

Source: `lib/opsinjs.ts`. Script: `scripts/build-reference.mts`. Command:
`pnpm run generate`.

Everything below is copied from the symbol, so a page is improved by improving
its doc comment. The [API index](./index.mdx) says why there is a page per
symbol and what these pages still do not carry.

{/* opsinjs:generated:begin - everything below is replaced by scripts/build-reference.mts */}

## TrendPoint [#trendpoint]

One reading in a series, for the components that draw change over time.

`value` is `number | null` rather than `number` because a gap in a series is information: a day with no reading is not a day with a reading of zero, and charting it as zero invents a measurement. A `null` point is drawn as a break in the line and described in words by the chart's text twin.

`status` is optional and is an input, never a derivation. opsinjs does not compare a point to a range and decide what it means, because it does not know the reader; a point carries a verdict only when the consuming product attached one.

| Kind      | Declared in      |
| --------- | ---------------- |
| interface | `lib/opsinjs.ts` |

```ts
export interface TrendPoint {
  at: string
  value: number | null
  status?: ClinicalStatus
}
```

{/* opsinjs:generated:end */}
