NChartTouchArea Class Reference

Inherits from NChartPoint : NSObject
Declared in NChartTouchAreaSeries.h

Overview

The NChartTouchArea class provides methods to define touch area for NChartTouchAreaSeries. Area is defined in relative coordinates that should be in [0, 1]x[0, 1] and relates to the size of background set through NChartTouchAreaSeriesSettings. (0, 0) corresponds to the top-left corner of the background image, (1, 1) - to the bottom-right.

+ touchAreaWithArea:forSeries:

Create touch area with given area.

+ (NChartTouchArea *)touchAreaWithArea:(CGRect)area forSeries:(NChartSeries *)series

Parameters

area
  • area for touch area.
series
  • series for touch area.

Return Value

new instance of touch area.

Declared In

NChartTouchAreaSeries.h

– initWithArea:forSeries:

Initialize touch area with given area.

- (id)initWithArea:(CGRect)area forSeries:(NChartSeries *)series

Parameters

area
  • area for touch area.
series
  • series for touch area.

Return Value

initialized instance of touch area.

Declared In

NChartTouchAreaSeries.h

  area

Touch area rect.

@property (nonatomic, assign) CGRect area

Declared In

NChartTouchAreaSeries.h