NChartTooltip Class Reference

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

Overview

The NChartTooltip class provides methods to display the tooltip for the chart’s points.

+ tooltip

Create new tooltip instance.

+ (NChartTooltip *)tooltip

Return Value

new tooltip instance.

Declared In

NChartTooltip.h

– setVisible:animated:

Change visibility of tooltip animated.

- (void)setVisible:(BOOL)visible animated:(float)duration

Parameters

visible
  • flag of visibility.
duration
  • duration of animation in seconds.

Declared In

NChartTooltip.h

  verticalAlignment

Vertical alignment of the tooltip. It is used if tooltip has no arrow presented, otherwise it is ignored.

@property (nonatomic, assign) NChartTooltipVerticalAlignment verticalAlignment

Declared In

NChartTooltip.h

  defaultArrowOrientation

Default orientation of the tooltip’s arrow. The default value is NChartTooltipArrowOrientationBottom.

@property (nonatomic, assign) NChartTooltipArrowOrientation defaultArrowOrientation

Discussion


The default arrow orientation is the orientation tooltip uses if it’s far from plot area borders. If it’s close to border and alwaysInPlotArea is set to YES, it’s arrow orientation is automatically changed to keep tooltip inside the plot area.

Declared In

NChartTooltip.h

  alwaysInPlotArea

Flag determining if the tooltip should always be inside of the chart’s plot area. If YES, the tooltip may be shifted to fit in the plot area when it’s pivot is near the border of the chart’s plot area. If NO, it is never shifted and can overlap the axis when it’s pivot is near the border of the chart’s plot area. The default value is YES.

@property (nonatomic, assign) BOOL alwaysInPlotArea

Declared In

NChartTooltip.h