@NonNull @Override public IAnnotation createAnnotation(@NonNull ISciChartSurface parentSurface, int annotationType) { return sciChartBuilder.newTextAnnotation().withText("!!! Your text here !!!").build(); } });
TextAnnotation textAnnotation = sciChartBuilder.newTextAnnotation() .withX1(5.0) .withY1(55.0)
Collections.addAll(sciChartSurface.getChartModifiers(), sciChartBuilder.newModifierGroupWithDefaultModifiers().build()); Collections.addAll(sciChartSurface.getAnnotations(), sciChartBuilder.newTextAnnotation() .withX1(0.3) .withY1(0)
TextAnnotation textAnnotation = sciChartBuilder.newTextAnnotation() .withX1(5.0) .withY1(55.0)
sciChartBuilder.newTextAnnotation() .withX1(0.5) .withY1(0.5) sciChartBuilder.newTextAnnotation() .withX1(0.3) .withY1(9.7) .withText("Annotations are Easy!") .build(), sciChartBuilder.newTextAnnotation() .withX1(1.0) .withY1(9.0) sciChartBuilder.newTextAnnotation() .withX1(5d) .withY1(8d) .withText("Anchor Center (X1, Y1)") .build(), sciChartBuilder.newTextAnnotation() .withX1(5d) .withY1(8d) .withText("Anchor Right") .build(), sciChartBuilder.newTextAnnotation() .withX1(5d) .withY1(8d)
TextAnnotation textAnnotation = sciChartBuilder.newTextAnnotation() .withX1(5.0) .withY1(55.0)
TextAnnotation textAnnotation = sciChartBuilder.newTextAnnotation() .withX1(5.0) .withY1(55.0)
sciChartBuilder.newTextAnnotation() .withIsEditable(true) .withText("Buy!") .withZIndex(1) // draw this annotation above other annotations .build(), sciChartBuilder.newTextAnnotation() .withBackgroundDrawableId(R.drawable.example_text_annotation_background) .withIsEditable(true) .withZIndex(1) // draw this annotation above other annotations .build(), sciChartBuilder.newTextAnnotation() .withX1(80d).withY1(37d) .withIsEditable(true) .withAnnotationLabel(LabelPlacement.Top, null, 90) .build(), sciChartBuilder.newTextAnnotation() .withCoordinateMode(AnnotationCoordinateMode.Relative) .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center)
TextAnnotation textAnnotation = sciChartBuilder.newTextAnnotation() .withX1(5.0) .withY1(55.0)
TextAnnotation textAnnotation = sciChartBuilder.newTextAnnotation() .withX1(5.0) .withY1(55.0)
.build(); final TextAnnotation textAnnotation = sciChartBuilder.newTextAnnotation() .withText("Custom Spline Chart") .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center)