Skip to main content

CrossLineAnnotation

CrossLineAnnotation📘 draws a one-point cross-style guide line. It is useful for aligned visual markers across the chart.

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

sciChartSurface.annotations.add(
new CrossLineAnnotation({
isEditable: true,
points: [{ x: 4, y: 4 }],
stroke: "#F97316",
strokeThickness: 2,
}),
);
tip
  • CrossLineAnnotation always renders both horizontal and vertical guide lines through the same anchor point, so extendStart and extendEnd are intentionally fixed.
  • Use strokeDashArray if you want the crosshair to behave like a subtle alignment aid instead of a strong visual anchor.
  • Because it is still a multi-point annotation, it inherits the same selection and hover behavior as the rest of the trading tools.

See Also​