.withX1(5.0) .withY1(55.0) .withText("Hello World!") .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Center) .withFontStyle(20, ColorUtil.White) .build();
.withX1(5.0) .withY1(55.0) .withText("Hello World!") .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Center) .withFontStyle(20, ColorUtil.White) .build();
.withX1(5.0) .withY1(55.0) .withText("Hello World!") .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Center) .withFontStyle(20, ColorUtil.White) .build();
.withIsEditable(true) .withText("Buy!") .withX1(10) .withY1(30.5d) .withVerticalAnchorPoint(VerticalAnchorPoint.Bottom) .withFontStyle(20, ColorUtil.White) .withZIndex(1) // draw this annotation above other annotations .build(), sciChartBuilder.newTextAnnotation() .withBackgroundDrawableId(R.drawable.example_text_annotation_background) .withIsEditable(true) .withText("Sell!") .withX1(50) .withY1(34d) .withFontStyle(20, ColorUtil.White) .withPadding(8) .withZIndex(1) // draw this annotation above other annotations .build(), sciChartBuilder.newTextAnnotation() .withX1(80d).withY1(37d) .withIsEditable(true) .withText("Rotated text") .withFontStyle(20, ColorUtil.White) .withRotationAngle(30) .withZIndex(1) // draw this annotation above other annotations .build(), sciChartBuilder.newBoxAnnotation() .withIsEditable(true)
.withX1(0.5) .withY1(0.5) .withFontStyle(Typeface.DEFAULT_BOLD, 42, 0x22FFFFFF) .withCoordinateMode(AnnotationCoordinateMode.Relative) .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Center) .withText("Create \n Watermarks") .withTextGravity(Gravity.CENTER) .build(), .withX1(0.3) .withY1(9.7) .withFontStyle(24, ColorUtil.White) .withText("Annotations are Easy!") .build(), sciChartBuilder.newTextAnnotation() .withX1(1.0) .withY1(9.0) .withText("You can create text") .withFontStyle(10, ColorUtil.White) .build(), .withX1(5d) .withY1(8d) .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Bottom) .withText("Anchor Center (X1, Y1)") .build(), sciChartBuilder.newTextAnnotation()
.withX1(5.0) .withY1(55.0) .withText("Hello World!") .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Center) .withFontStyle(20, ColorUtil.White) .build();
.withX1(5.0) .withY1(55.0) .withText("Hello World!") .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Center) .withFontStyle(20, ColorUtil.White) .build();
.withX1(5.0) .withY1(55.0) .withText("Hello World!") .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Center) .withFontStyle(20, ColorUtil.White) .build();
.withText("Custom Spline Chart") .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Top) .withCoordinateMode(AnnotationCoordinateMode.Relative) .withX1(0.5) .withY1(0.01) .build();
Collections.addAll(sciChartSurface.getAnnotations(), sciChartBuilder.newTextAnnotation() .withX1(0.3) .withY1(0) .withFontStyle(24, ColorUtil.White) .withText("Annotations are Easy!") .build(), sciChartBuilder.newHorizontalLineAnnotation() .withX1(4).withY1(-2)