NChartHair Class Reference

Inherits from NSObject
Declared in NChartCrosshair.h

Overview

The NChartHair class provides methods to control the single line within crosshair.

  visible

Flag determining if hair is visible (YES) or not (NO). The default value is YES.

@property (nonatomic, assign) BOOL visible

Declared In

NChartCrosshair.h

  hostsOnSAxis

Flag determining if hair is hosted on secondary axis (YES) or not (NO). The default value is NO.

@property (nonatomic, assign) BOOL hostsOnSAxis

Declared In

NChartCrosshair.h

  value

Value the hair intersects its axis in. The default value is 0.

@property (nonatomic, assign) double value

Declared In

NChartCrosshair.h

  firstHalfColor

The color of the first half of hair. If nil, not displayed. The default value is nil.
The color of the hairs part from the axis to the point it marks.

@property (nonatomic, strong) NSColor *firstHalfColor

Declared In

NChartCrosshair.h

  secondHalfColor

The color of the second half of hair. If nil, not displayed. The default value is nil.
The color of the hairs part from the the point it marks to the end of chart plot area.

@property (nonatomic, strong) NSColor *secondHalfColor

Declared In

NChartCrosshair.h

– setColor:

Set color for both halves of hair.

- (void)setColor:(NSColor *)color

Parameters

color
  • color to set.

Declared In

NChartCrosshair.h

  isDraggable

Flag determining if hair can be dragged (YES) or not (NO). The default value is YES.

@property (nonatomic, assign) BOOL isDraggable

Declared In

NChartCrosshair.h

  snapToMajorTicks

Flag determining if hair should snap to major ticks while moving. The default value is NO.

@property (nonatomic, assign) BOOL snapToMajorTicks

Declared In

NChartCrosshair.h

  snapToMinorTicks

Flag determining if hair should snap to minor ticks while moving. The default value is NO.

@property (nonatomic, assign) BOOL snapToMinorTicks

Declared In

NChartCrosshair.h

  tooltip

Tooltip of the hair. The default value is nil.
To display tooltip you should set it before your updateData call.

@property (nonatomic, strong) NChartTooltip *tooltip

Declared In

NChartCrosshair.h

  tooltipPosition

Position of the hair’s tooltip. The default value is NChartCrosshairTooltipPositionByMax.

@property (nonatomic, assign) NChartCrosshairTooltipPosition tooltipPosition

Declared In

NChartCrosshair.h