Inherits from IGMarkerSeries : IGSeries : NSObject
Declared in Series.h

Overview

This is the base class for all stacked series. It contains the array of fragment series and the data source. This class should not be allocated.

Properties

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. IGStackedSeriesDataSourceHelper class can be used to create a data source for a stacked series. This could also be a custom data source that conforms to IGStackedSeriesDataSource protocol.

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

Declared In

Series.h

reverseLegendOrder

Determines whether the legend items for all fragments within the series should appear in reverse order.

@property (nonatomic) BOOL reverseLegendOrder

Declared In

Series.h

series

Returns an array of fragment series. (read-only)

@property (nonatomic, readonly) NSArray *series

Declared In

Series.h

Instance Methods

addFragmentSeries:

Adds a fragment series to the stacked series.

- (void)addFragmentSeries:(IGStackedFragmentSeries *)series

Parameters

series

Fragment series to add to the stacked series.

Declared In

Series.h

findFragmentForName:

Finds a fragment series with a specified name. Returns the first series that matches the name or returns nil if a series can’t be found.

- (IGStackedFragmentSeries *)findFragmentForName:(NSString *)name

Parameters

name

String name of the fragment series.

Return Value

Returns first matching fragment or nil.

Declared In

Series.h

findFragmentForPropertyName:

Finds a fragment series, whose valueProperty property is equal to the specified property name. Returns the first series that matches the name or returns nil if a series can’t be found.

- (IGStackedFragmentSeries *)findFragmentForPropertyName:(NSString *)propertyName

Parameters

propertyName

String property name, equal to valueProperty property of the fragment series.

Return Value

Returns first matching fragment or nil.

Declared In

Series.h

insertFragmentSeries:atIndex:

Inserts a fragment series into the stacked series at a specified index.

- (void)insertFragmentSeries:(IGStackedFragmentSeries *)series atIndex:(NSInteger)index

Parameters

series

Fragment series to insert.

index

Index, at which to insert the fragment series.

Declared In

Series.h

removeAllFragmentSeries

Removes all fragment series from the stacked series.

- (void)removeAllFragmentSeries

Declared In

Series.h

removeFragmentSeries:

Removes a fragment series from the stacked series.

- (void)removeFragmentSeries:(IGStackedFragmentSeries *)series

Parameters

series

Fragment series to remove from the stacked series.

Declared In

Series.h

removeFragmentSeriesAtIndex:

Removes a fragment series from the stacked series at a specified index.

- (void)removeFragmentSeriesAtIndex:(NSInteger)index

Parameters

index

Index, at which to remove the fragment series.

Declared In

Series.h

replaceWithFragmentSeries:atIndex:

Replaces a fragment series with another fragment series at a specified index.

- (void)replaceWithFragmentSeries:(IGStackedFragmentSeries *)series atIndex:(NSInteger)index

Parameters

series

Fragment series that will replace an existing fragment series.

index

Index, at which the fragment series will be replaced.

Declared In

Series.h

setTitle:forFragmentSeriesAtIndex:

Sets a title string to a fragment series at a specified index.

- (void)setTitle:(NSString *)title forFragmentSeriesAtIndex:(NSInteger)index

Parameters

title

A new title string for the fragment series.

index

Index of the fragment series in the parent stacked series.

Declared In

Series.h