NChartPoint Class Reference

Inherits from NSObject
Declared in NChartPoint.h

Overview

The NChartPoint class provides methods to manage chart’s points.

+ pointWithArrayOfStates:forSeries:

Create point with an array of states.

+ (NChartPoint *)pointWithArrayOfStates:(NSArray *)states forSeries:(NChartSeries *)series

Parameters

states
series
  • the series the point belongs to.

Return Value

a new instance of the point.

Declared In

NChartPoint.h

+ pointWithState:forSeries:

Create point with a single state.

+ (NChartPoint *)pointWithState:(NChartPointState *)state forSeries:(NChartSeries *)series

Parameters

state
series
  • the series the point belongs to.

Return Value

a new instance of the point.

Declared In

NChartPoint.h

– initWithArrayOfStates:forSeries:

Init point with an array of states.

- (id)initWithArrayOfStates:(NSArray *)states forSeries:(NChartSeries *)series

Parameters

states
series
  • the series the point belongs to.

Return Value

the initialized instance of a point.

See Also

Declared In

NChartPoint.h

– initWithState:forSeries:

Init point with a single state.

- (id)initWithState:(NChartPointState *)state forSeries:(NChartSeries *)series

Parameters

state
series
  • the series the point belongs to.

Return Value

the initialized instance of a point.

See Also

Declared In

NChartPoint.h

  series

Series the point belongs to.

@property (nonatomic, weak) NChartSeries *series

See Also

Declared In

NChartPoint.h

  states

Array of states. See NChartPointState for details. If a point was created with a single state, the array of states is not allocated and this property returns nil.

@property (nonatomic, readonly) NSArray *states

Declared In

NChartPoint.h

  currentStateIndex

Index of current state. If a point was created with a single state, this property always returns 0.

@property (nonatomic, readonly) NSInteger currentStateIndex

Declared In

NChartPoint.h

  currentState

Direct access to current state. This is a bit faster and more convenient than a query element of the states' array by currentStateIndex. If a point was created with a single state, this property is the only way to access it.

@property (nonatomic, readonly) NChartPointState *currentState

See Also

Declared In

NChartPoint.h

  tooltip

Tooltip that is shown on the point. It is nil by default. The tooltip is just a label, it does not change its content automatically. By altering its text, you can display any information you want, but you should do it yourself. Tooltip is similar to label, but it is placed in the center of the point by default. You can have tooltip and label simultaneously displaying different information.

@property (nonatomic, strong) NChartTooltip *tooltip

See Also

Declared In

NChartPoint.h

  label

Label that is shown near the point. It is nil by default. The label does not change its content automatically. By altering its text, you can display any information you want, but you should do it yourself. Label is similar to tooltip, but it is placed in the top of the point by default. You can have tooltip and label simultaneously displaying different information.

@property (nonatomic, strong) NChartTooltip *label

See Also

Declared In

NChartPoint.h

  highlightColor

Highlight color. Some points can be highlighted by color, for example in column, pie or bubble (where the points are individual objects). In series like line and area the color highlight can be applied to the markers, so for these series this property has effect only if the marker is set.

@property (nonatomic, strong) NSColor *highlightColor

Declared In

NChartPoint.h

  highlightShift

Highlight shift. Some points can be highlighted by shift, for example in pie. The shift is set in scene units. For example, the radius of pie is 1 scene unit, so you can use this value as a reference.

@property (nonatomic, assign) float highlightShift

Declared In

NChartPoint.h

– highlightWithMask:duration:delay:

Highlight point using the highlight settings done by highlightColor and highlightShift properties.

- (void)highlightWithMask:(NSUInteger)mask duration:(float)duration delay:(float)delay

Parameters

mask
  • mask of highlighting. See NChartHighlightType enum for details. You may use multiple constants concatenated with bitwise OR.
duration
  • duration of highlighting animation in seconds.
delay
  • delay to start of highlighting animation in seconds.

Declared In

NChartPoint.h

  tag

Tag of the point. You may use it as you want.

@property (nonatomic, assign) NSInteger tag

Declared In

NChartPoint.h