NChartCallout Class Reference

Inherits from NChartTooltip : NChartLabel : NChartPlaced : NChartObject : NSObject
Declared in NChartCallout.h

Overview

The NChartCallout class provides methods to display tooltips as callouts.

+ callout

Create new callout instance.

+ (NChartCallout *)callout

Return Value

new callout instance.

Declared In

NChartCallout.h

  lineThickness

Thickness of the callout line. The default value is 1.

@property (nonatomic, assign) float lineThickness

Declared In

NChartCallout.h

  lineColor

Color of the callout line. The default value is [UIColor blackColor].

@property (nonatomic, strong) NSColor *lineColor

Declared In

NChartCallout.h

  lineToLabelConnectionPos

Position where the line connects to the label. The default value is NChartCalloutLineToLabelConnectionPosAutodetect.

@property (nonatomic, assign) NChartCalloutLineToLabelConnectionPos lineToLabelConnectionPos

Declared In

NChartCallout.h

  distance

Distance from the chart’s point to the callout’s tooltip in the autodetected direction (in pixels). If this property is 0, margin is used to control this distance (and therefore you control the direction yourself). Otherwise, the direction is detected automatically. In case of pie it’s median of the corresponding sector. In case of all other charts it’s north-east direction. The default value is 0.

@property (nonatomic, assign) float distance

Declared In

NChartCallout.h

  lineType

Type of callout line. The default value is NChartCalloutLineTypeStraight.

@property (nonatomic, assign) NChartCalloutLineType lineType

Declared In

NChartCallout.h

  locateByOrigin

Flag determining if callout should be located in the position specified by the origin property (YES), or according to distance and margin properties (NO). The default value is NO.

@property (nonatomic, assign) BOOL locateByOrigin

Discussion

If this property is set to YES, origin has effect, but margin and distance has no effect, and vice versa.

Declared In

NChartCallout.h

  origin

Position of the top left corner of callout in pixels based on view’s coordinate system, but with zero point shifted to the top left corner of chart plot area. The default value is {0; 0}.

@property (nonatomic, assign) CGPoint origin

Discussion

This property has effect if locateByOrigin is set to YES only.

Declared In

NChartCallout.h