NChartMarker Class Reference

Inherits from NSObject
Declared in NChartMarker.h

Overview

The NChartMarker class provides methods to display markers in the points of the chart.
Each series, that can display markers, has the property default marker. If you set it to series, this will be a default for all the points. However you can set the marker for the point and those values, that you set to this marker, will override the corresponding values from the default marker. For example, if you set the marker for series and change its size, shape and resolution, and after that set another marker to some point and change its size, all points will have the markers with shape and resolution from the default marker. The size of all points except the one you modified will also be the same (obtained from default marker too). And the modified point will differ in size.

+ marker

Create new instance of marker.

+ (NChartMarker *)marker

Return Value

new instance of marker.

Declared In

NChartMarker.h

  shape

Shape of the marker. There are predefined shapes and NChartMarkerShapeModel that requires the model to be set.

@property (nonatomic, assign) NChartMarkerShape shape

See Also

Declared In

NChartMarker.h

  model

Model of the marker. This property is nil by default. By setting this property, shape is automatically set to NChartMarkerShapeModel. If the shape is not NChartMarkerShapeModel, this property has no effect, even if it is not nil. If the shape is NChartMarkerShapeModel and model is nil, it is equivalent to the shape set to NChartMarkerShapeNone, so no marker is displayed.

@property (nonatomic, strong) NChartModel *model

See Also

Declared In

NChartMarker.h

  brush

Brush that fills the marker.

@property (nonatomic, strong) NChartBrush *brush

See Also

Declared In

NChartMarker.h

  borderBrush

Brush of the marker’s border. Please note, that only markers with predefined shapes have borders. If you use model, border’s properties are ignored.

@property (nonatomic, strong) NChartBrush *borderBrush

See Also

Declared In

NChartMarker.h

  borderThickness

Thickness of the marker’s border in pixels. Please note, that only markers with predefined shapes have borders. If you use a model, the border’s properties are ignored.

@property (nonatomic, assign) float borderThickness

Declared In

NChartMarker.h

  angleX

Rotation of the marker around the X-axis in radians. This property is used for “volumetric” markers only, this means for those that are not plain.

@property (nonatomic, assign) float angleX

Declared In

NChartMarker.h

  angleY

Rotation of the marker around the Y-axis in radians. This property is used for “volumetric” markers only, this means for those that are not plain.

@property (nonatomic, assign) float angleY

Declared In

NChartMarker.h

  angleZ

Rotation of the marker around the Z-axis in radians. This property is used for “volumetric” markers only, this means for those that are not plain.

@property (nonatomic, assign) float angleZ

Declared In

NChartMarker.h

  size

Size of the marker.
. The size can be in any unit you want. It is rescaled to pixels with the help of NChartSizeAxis. If no data source is set for size axis, units are interpreted as pixels.

@property (nonatomic, assign) float size

See Also

Declared In

NChartMarker.h

  selectionSize

Size of the marker’s touch area (the area you can touch to select the corresponding chart point). If this size is zero, touch area has the size of marker (that is set with size property). The default value is 0.0f.
. Use this property if you want to make touch area more or less then the marker size. The size can be in any unit you want. It is rescaled to pixels with the help of NChartSizeAxis. If no data source is set for size axis, units are interpreted as pixels.

@property (nonatomic, assign) float selectionSize

See Also

Declared In

NChartMarker.h

  resolution

Resolution of the marker. Resolution is the amount of vertices that build the circle (sphere). It is used if marker’s shape is NChartMarkerShapeCircle or NChartMarkerShapeSphere.

@property (nonatomic, assign) uint resolution

Discussion

This value cannot be less than 3 and greater than 32.

See Also

Declared In

NChartMarker.h