.withY1(55.0) .withText("Hello World!") .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center)
sciChartBuilder.newTextAnnotation() .withX1(0.3) .withY1(0) .withFontStyle(24, ColorUtil.White) .withText("Annotations are Easy!")
.withY1(55.0) .withText("Hello World!") .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center)
.withY1(55.0) .withText("Hello World!") .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center)
.withText("Buy!") .withX1(10) .withY1(30.5d) .withVerticalAnchorPoint(VerticalAnchorPoint.Bottom) .withFontStyle(20, ColorUtil.White) .withText("Sell!") .withX1(50) .withY1(34d) .withFontStyle(20, ColorUtil.White) .withPadding(8) .build(), sciChartBuilder.newTextAnnotation() .withX1(80d).withY1(37d) .withIsEditable(true) .withText("Rotated text") .withFontStyle(Typeface.DEFAULT_BOLD, 72, 0x77FFFFFF) .withX1(0.5d) .withY1(0.5d) .withZIndex(-1) // draw this annotation below other annotations .build()
.withY1(55.0) .withText("Hello World!") .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center)
.withY1(0.5) .withFontStyle(Typeface.DEFAULT_BOLD, 42, 0x22FFFFFF) .withCoordinateMode(AnnotationCoordinateMode.Relative) .withY1(9.7) .withFontStyle(24, ColorUtil.White) .withText("Annotations are Easy!") sciChartBuilder.newTextAnnotation() .withX1(1.0) .withY1(9.0) .withText("You can create text") .withFontStyle(10, ColorUtil.White) .withY1(8d) .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Bottom) sciChartBuilder.newTextAnnotation() .withX1(5d) .withY1(8d) .withHorizontalAnchorPoint(HorizontalAnchorPoint.Right) .withVerticalAnchorPoint(VerticalAnchorPoint.Top) sciChartBuilder.newTextAnnotation() .withX1(5d) .withY1(8d) .withHorizontalAnchorPoint(HorizontalAnchorPoint.Left) .withVerticalAnchorPoint(VerticalAnchorPoint.Top)
.withY1(55.0) .withText("Hello World!") .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center)
.withY1(55.0) .withText("Hello World!") .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center)
.withCoordinateMode(AnnotationCoordinateMode.Relative) .withX1(0.5) .withY1(0.01) .build();