Inherits from NSObject
Declared in Series.h

Overview

IGSeries is the base class for all series objects. It contains common properties, such as dataSource, legend and various brushes. This class should not be allocated.

Tasks

Other Methods

Initializing series

Properties

actualBrush

Returns the resolved brush of the series. (read-only) A series brush can be set by the series or the chart view. The brush can also be automatically generated. This property returns the resolved brush.

@property (nonatomic, readonly) IGBrush *actualBrush

Declared In

Series.h

actualLegend

Returns the resolved legend of the series. (read-only) A series legend can be set by the series or the chart view. This property returns the resolved legend.

@property (nonatomic, readonly) IGLegendBase *actualLegend

Declared In

Series.h

actualOutline

Returns the resovled outline of the series. (read-only) A series outline can be set by the series or the chart view. The outline can also be automatically generated. This property returns the resolved outline.

@property (nonatomic, readonly) IGBrush *actualOutline

Declared In

Series.h

areaFillOpacity

Gets or sets the opacity applied to the area fill visual. A double value in the range 0, 1. The default is NaN. This property only applies to series that have an area visual.

@property (nonatomic) CGFloat areaFillOpacity

Declared In

Series.h

brush

A brush used by the series. This property is used to set a brush for this series. This property takes precedence over chart view’s brushes array and themes.

@property (nonatomic, retain) IGBrush *brush

Declared In

Series.h

dashArray

An array of values used to create a dash pattern for the series border. This property uses an array of CGFloats to construct a repeating pattern of alternating dashes and spaces.

@property (nonatomic, retain) NSArray *dashArray

Declared In

Series.h

dashCap

An enumeration value that determines the stroke dash cap. This propery specifies the shape used to draw line caps when the series uses a dashed border.

@property (nonatomic) CGLineCap dashCap

Declared In

Series.h

dataPoints

Returns an array of data points used by the series. (read-only)

@property (nonatomic, readonly) NSMutableArray *dataPoints

Declared In

Series.h

dataSource

Specifies the data source used by the series. This property represents the data source used by the series. A series must provide a data source in order to display shapes. Different series types has special requirements for their data sources. Chart view has several data source helper classes that can create valid data sources for different series. This could also be a custom data source that conforms to IGSeriesDataSource protocol.

@property (nonatomic, assign) id<IGSeriesDataSource> dataSource

Declared In

Series.h

hidden

Determines whether the series should be hidden.

@property (nonatomic) BOOL hidden

Declared In

Series.h

isHighlightingEnabled

@property (nonatomic) BOOL isHighlightingEnabled

key

A string value used as the series identifier.

@property (nonatomic, readonly) NSString *key

Declared In

Series.h

legend

Specifies the legend used with the series. This property is used to specify a legend for the series. This can be an IGItemLegend to display eevry point in the series, IGLegend to display one legend item per series. If the series is a IGBubbleSeries, then an IGScaleLegend can be used to display a bubble scale.

@property (nonatomic, assign) IGLegendBase *legend

Declared In

Series.h

legendItemIsVisible

A Boolean value tha determines whether legend items should be visible.

@property (nonatomic) BOOL legendItemIsVisible

Declared In

Series.h

opacity

Determines the opacity of the series.

@property (nonatomic) CGFloat opacity

Declared In

Series.h

outline

A brush used as an outline by the series. This propety is used to set an outline for this series. This property takes precedence over chart view’s outlines array and themes.

@property (nonatomic, retain) IGBrush *outline

Declared In

Series.h

resolution

A value that determines the series rendering resolution. This property is used to determine which points to omit when displaying high amounts of data. The default value is 1. The higher values will result is fewer point being used to draw the series. This will improve the performance at the possible cost of graph’s accuracy.

@property (nonatomic) CGFloat resolution

Declared In

Series.h

strings

Sets the IGSeriesStringsDefinition that will control the default text values of particular elements of the IGSeries.

@property (nonatomic, assign) id<IGSeriesStringsDefinition> strings

Declared In

Series.h

thickness

A value that determines the border thickness of the series.

@property (nonatomic) CGFloat thickness

Declared In

Series.h

title

A string that represents the series title. This property is used by the series to create title text.

@property (nonatomic, retain) NSString *title

Declared In

Series.h

transitionDuration

A value that determines the length of animation. This property is used to determine how long (in seconds) the point animation lasts.

@property (nonatomic) CGFloat transitionDuration

Declared In

Series.h

Instance Methods

initWithKey:

Initializes the series with a key.

- (instancetype)initWithKey:(NSString *)key

Parameters

key

String identifier of the series.

Return Value

Returns an initialized series.

Declared In

Series.h

invalidateVisuals

- (void)invalidateVisuals