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.
- TS
sciChartSurface.annotations.add(
new CrossLineAnnotation({
isEditable: true,
points: [{ x: 4, y: 4 }],
stroke: "#F97316",
strokeThickness: 2,
}),
);
tip
CrossLineAnnotationalways renders both horizontal and vertical guide lines through the same anchor point, soextendStartandextendEndare intentionally fixed.- Use
strokeDashArrayif 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.