Skip to content

Documentation / @ripl/charts / ChartPointAnnotation

Interface: ChartPointAnnotation ​

Defined in: charts/src/components/annotation.ts:68

A marker (dot + optional label) placed at a specific x/y data coordinate.

Properties ​

PropertyTypeDescriptionDefined in
color?stringMarker color. Defaults to a neutral annotation color.charts/src/components/annotation.ts:78
label?stringOptional label rendered beside the marker.charts/src/components/annotation.ts:76
radius?numberMarker radius in pixels. Defaults to 4.charts/src/components/annotation.ts:80
type"point"Discriminator selecting a point annotation.charts/src/components/annotation.ts:70
xnumberThe x value (on the x scale) of the marker.charts/src/components/annotation.ts:72
ynumberThe y value (on the y scale) of the marker.charts/src/components/annotation.ts:74