Skip to main content

CyclicLineAnnotation

CyclicLineAnnotation📘 draws a cyclical projection line from two points. It is useful for repeating timing or cycle-based analysis.

It inherits the shared multi-point editing and label behavior from scichart-financial-tools.

sciChartSurface.annotations.add(
new CyclicLineAnnotation({
isEditable: true,
isSelected: true,
points: [
{ x: 2, y: 4 },
{ x: 3, y: 4 }
],
stroke: "#38BDF8",
strokeThickness: 2,
// strokeDashArray: [5, 3], // optional
extendStart: true,
extendEnd: true
})
);
tip
  • showConnectorLine and connectorLineStrokeDashArray let you decide whether the base interval line should be visible and how strong it should look.
  • maxRepeatCount limits how many repeated cycle markers are drawn, which is useful when a chart would otherwise get too busy.
  • extendStart and extendEnd control whether the cycle pattern repeats before the first point or after the second point.

See Also​