rectangle

function rectangle<A extends Annotation, C extends Chart>(config: RectangleConfig <A, C>): d3.Selection

This renders a list of Annotation objects as rectangles in a Chart.

Type parameters

  • A: Annotation

  • C: Chart

Parameters

  • config: RectangleConfig <A, C>

Returns: d3.Selection <SVGGElement, string, any, any>