How much bigger the selection box is than the bounding box of the annotation, in pixels
Optional selectionBoxStroke
selectionBoxStroke:string
The stroke color for the adorner selection box
Optional selectionBoxThickness
selectionBoxThickness:number
The thickness of the selection box line
Optional x1
x1:number
description
the X1 coordinate of the annotation
remarks
The X1 coordinate obeys xCoordinateMode which defines whether the X1 coordinate is a pixel, data-value or relative coordinate
Optional x2
x2:number
description
the X2 coordinate of the annotation
remarks
The X1 coordinate obeys xCoordinateMode which defines whether the X2 coordinate is a pixel, data-value or relative coordinate
Optional xAxisId
xAxisId:string
summary
The current XAxis Id that this IAnnotation is bound to
description
By default all Annotations will draw on the first X,Y axis pair in SciChart.
If you want this to change, you must add a second axis to your SciChartSurface and link the IAnnotation by Axis Id.
For example:
const sciChartSurface: SciChartSurface;
const primaryXAxis = new NumericAxis(wasmContext); // Has Id = AxisCore.DEFAULT_AXIS_IDconst primaryYAxis = new NumericAxis(wasmContext); // Has Id = AxisCore.DEFAULT_AXIS_IDconst secondaryXAxis = new NumericAxis(wasmContext); // For subsequent X,Y axis set an Id
secondaryXAxis.id = "SecondaryXAxis";
const secondaryYAxis = new NumericAxis(wasmContext);
secondaryYAxis.id = "SecondaryYAxis";
// Add all Axis to the chart
sciChartSurface.xAxes.add(primaryXAxis);
sciChartSurface.yAxes.add(primaryYAxis);
sciChartSurface.xAxes.add(secondaryXAxis);
sciChartSurface.yAxes.add(secondaryYAxis);
// Add an Annotation on the default axisconst annotation = new LineAnnotation(wasmContext); // xAxisId, yAxisId Defaults to AxisCore.DEFAULT_AXIS_ID
sciChartSurface.renderableSeries.add(annotation);
// Add an Annotation on the specific axisconst annotation2 = new LineAnnotation(wasmContext);
annotation2.xAxisId = "SecondaryXAxis";
annotation2.yAxisId = "SecondaryYAxis";
sciChartSurface.renderableSeries.add(annotation2);
The X-Coordinate mode. See ECoordinateMode for a list of values
remarks
Want to display an annotation stretching across the entire width (or height) or the SciChartSurface?
The ECoordinateMode enum has options which allow for relative, absolute or pixel coordinates which define annotation
placement.
Optional y1
y1:number
description
the Y1 coordinate of the annotation
remarks
The Y1 coordinate obeys xCoordinateMode which defines whether the Y1 coordinate is a pixel, data-value or relative coordinate
Optional y2
y2:number
description
the Y2 coordinate of the annotation
remarks
The Y2 coordinate obeys xCoordinateMode which defines whether the Y2 coordinate is a pixel, data-value or relative coordinate
Optional yAxisId
yAxisId:string
summary
The current YAxis Id that this IAnnotation is bound to
description
By default all Annotations will draw on the first X,Y axis pair in SciChart.
If you want this to change, you must add a second axis to your SciChartSurface and link the IAnnotation by Axis Id.
For example:
const sciChartSurface: SciChartSurface;
const primaryXAxis = new NumericAxis(wasmContext); // Has Id = AxisCore.DEFAULT_AXIS_IDconst primaryYAxis = new NumericAxis(wasmContext); // Has Id = AxisCore.DEFAULT_AXIS_IDconst secondaryXAxis = new NumericAxis(wasmContext); // For subsequent X,Y axis set an Id
secondaryXAxis.id = "SecondaryXAxis";
const secondaryYAxis = new NumericAxis(wasmContext);
secondaryYAxis.id = "SecondaryYAxis";
// Add all Axis to the chart
sciChartSurface.xAxes.add(primaryXAxis);
sciChartSurface.yAxes.add(primaryYAxis);
sciChartSurface.xAxes.add(secondaryXAxis);
sciChartSurface.yAxes.add(secondaryYAxis);
// Add an Annotation on the default axisconst annotation = new LineAnnotation(wasmContext); // xAxisId, yAxisId Defaults to AxisCore.DEFAULT_AXIS_ID
sciChartSurface.renderableSeries.add(annotation);
// Add an Annotation on the specific axisconst annotation2 = new LineAnnotation(wasmContext);
annotation2.xAxisId = "SecondaryXAxis";
annotation2.yAxisId = "SecondaryYAxis";
sciChartSurface.renderableSeries.add(annotation2);
The Y-Coordinate mode. See ECoordinateMode for a list of values
remarks
Want to display an annotation stretching across the entire width (or height) or the SciChartSurface?
The ECoordinateMode enum has options which allow for relative, absolute or pixel coordinates which define annotation
placement.
Options passed to the constructor of an AnnotationBase, used to configure it at instantiation time