F2Guide

2 min read

Graphical helper object for dimensioning at specific points

Create F2Guide Instance

iOS

  chart.guide();

Android

  chart.guide();

method

- flag

Drawing flag auxiliary graphics

iOS

  chart.guide().flag(
                     @{
                        @"color":@"#108EE9",
                        @"position": @[@(1), @(99.9)],
                        @"content": @"flagDemo",
                        @"padding": @[@(5), @(3), @(5), @(3)] ,
                        @"backgroundColor":@"#C7E7FF",
                        @"textColor":@"#108EE9",
                        @"textSize": @(10.f)
                      });

Android

  • parameters
Attribute NameTypeExplanation
colorStringThe color of the flag auxiliary flag (Hex rgb)
positionArray<Number>The position where the auxiliary mark is drawn
padding[0] indicates the position of the X-axis
padding[1] indicates the position of the Y-axis
paddingArray<Number>The position where the auxiliary logo is drawn
padding[0] left
padding[1] top
padding[2] right
padding[3] Down
backgroundColorStringThe background color of the flag auxiliary logo (Hex rgb)
textColorStringText color
textSizeNumberText size

- text

Drawing text auxiliary graphics

iOS

chart.guide().text(
               @{
                 @"position": @[@(1), @(99.9)],
                 @"content": @"flagDemo",
                 @"padding": @[@(5), @(3), @(5), @(3)] ,
                 @"textColor":@"#108EE9",
                 @"textSize": @(10.f)
                 });

Android

  • parameters
Attribute NameTypeExplanation
positionArray<Number>The position where the auxiliary mark is drawn
padding[0] indicates the position of the X-axis
padding[1] indicates the position of the Y-axis
paddingArray<Number>The position where the auxiliary logo is drawn
padding[0] left
padding[1] top
padding[2] right
padding[3] Down
textColorStringText color
textSizeNumberText size