Conforms to NSObject
Declared in IGChartView.h

Overview

This protocol provides method that help interact with the chart view.

Instance Methods

chartSeriesRenderHighlight:forSeries:withArgs:

- (void)chartSeriesRenderHighlight:(IGChartView *)chartView forSeries:(IGSeries *)series withArgs:(IGAssigningCategoryStyleEventArgs *)args

chartSeriesRenderMarkerHighlight:forSeries:withArgs:

- (void)chartSeriesRenderMarkerHighlight:(IGChartView *)chartView forSeries:(IGSeries *)series withArgs:(IGAssigningCategoryMarkerStyleEventArgs *)args

chartView:labelForAxis:withItem:

Provides a custom label string for a given chart axis. This method is called for each label, as it’s about to be displayed on the axis. The parameters provide the axis that the label belongs to and the data point.

- (NSString *)chartView:(IGChartView *)chartView labelForAxis:(IGAxis *)axis withItem:(NSObject *)item

Parameters

chartView

Reference to the chart view.

axis

Current chart axis.

item

Current data point.

Return Value

String label to be used for the given data point on the given axis.

Declared In

IGChartView.h

chartView:labelForAxis:withItem:oldLabel:

Provides a custom label string for a given chart axis. This method is called for each label, as it’s about to be displayed on the axis. The parameters provide the axis that the label belongs to and the data point.

- (NSString *)chartView:(IGChartView *)chartView labelForAxis:(IGAxis *)axis withItem:(NSObject *)item oldLabel:(NSString *)oldLabel

Parameters

chartView

Reference to the chart view.

axis

Current chart axis.

item

Current data point.

oldLabel

The original axis label.

Return Value

String label to be used for the given data point on the given axis.

Declared In

IGChartView.h

chartView:tapForSeries:withItem:atPoint:

Allows handling of a tap getsure on a chart’s series. This method allows handling the tap gesture and provides information about the series and the data point that was tapped. The item parameter is an IGDataPoint for non-stacked series. For stacked series the item parameter contains a dictionary, where the keys are the fields used to create the stacked datasource.

- (void)chartView:(IGChartView *)chartView tapForSeries:(IGSeries *)series withItem:(NSObject *)item atPoint:(CGPoint)point

Parameters

chartView

Reference to the chart view.

series

Tapped series.

item

Current data point in the tapped series.

point

Coordinates of the touch point.

Declared In

IGChartView.h

chartView:viewForLegendItemInSeries:

Provides a custom view to be used for the specified series in the legend. This method gets called when a series uses custom markers and there is a legend that uses that series. The returned view will be used as a legend badge image.

- (UIView *)chartView:(IGChartView *)chartView viewForLegendItemInSeries:(IGSeries *)series

Parameters

chartView

Reference to the chart view.

series

Reference to the series object.

Return Value

UIView that will be used as a legend item badge.

Declared In

IGChartView.h

chartView:viewForMarkerInSeries:withItem:index:originalSourceItem:displayOptions:

Provides a custom view to be used for series markers. This method can be used to show a custom UIView as a marker for individual data points. The method provides information about the current data point, such as the IGDataPoint (for non-stacked series) that the marker represents, the index of the data point and the original data model object, from which the data point was created. For stacked series the item parameter contains a dictionary, where the keys are the fields used to create the stacked datasource. DisplayOptions parameter provides additional control over how the markers are displayed. Typically the returned view replaces the original marker, but when showOriginalMarker is set to YES, the original marker will render along with the custom view. To make the custom marker interactive, displayAsImage should be set to NO.

- (UIView *)chartView:(IGChartView *)chartView viewForMarkerInSeries:(IGSeries *)series withItem:(NSObject *)item index:(NSInteger)index originalSourceItem:(NSObject *)originalSourceItem displayOptions:(IGMarkerDisplayOptions *)options

Parameters

chartView

Reference to the chart view.

series

Reference to the series that will contain custom markers.

item

Current data point in the series.

index

Index of the current data point.

originalSourceItem

Object in the chart’s datasource that represents the current data point.

options

A set of properties that can customize the markers.

Return Value

UIView that will be used as a custom series marker.

Declared In

IGChartView.h

chartView:viewForTooltipWithItemlist:

Provides a custom view to be used as a tooltip in the chart view. This method can be used to show a custom UIView as a tooltip. The method provides information about data points that are located above or below the touch point. The item list parameter is a dictionary, where the keys are series keys and values are IGDataPoints. In a stacked series, the item list is a dictionary within a dictionary. The outer dictionary uses series keys as keys and the inner dictionary uses actual fields from the underlying stacked datasource.

- (UIView *)chartView:(IGChartView *)chartView viewForTooltipWithItemlist:(NSDictionary *)itemlist

Parameters

chartView

Reference to the chart view.

itemlist

A dictionary of series and data points that can be displayed in the tooltip.

Return Value

UIView that will be used as a tooltip.

Declared In

IGChartView.h

chartView:viewForTooltipWithItemlist:atPoint:

Provides a custom view to be used as a tooltip in the chart view. This method can be used to show a custom UIView as a tooltip. The method provides information about data points that are located above or below the touch point. The item list parameter is a dictionary, where the keys are series keys and values are IGDataPoints. In a stacked series, the item list is a dictionary within a dictionary. The outer dictionary uses series keys as keys and the inner dictionary uses actual fields from the underlying stacked datasource. In addition, this method provides the coordinates of the touch point relative to the chart.

- (UIView *)chartView:(IGChartView *)chartView viewForTooltipWithItemlist:(NSDictionary *)itemlist atPoint:(CGPoint)point

Parameters

chartView

Reference to the chart view.

itemlist

A dictionary of series and data points that can be displayed in the tooltip.

point

Coordinates of the touch point.

Return Value

UIView that will be used as a tooltip.

Declared In

IGChartView.h

chartViewDidEndDecelerating:

Notifies the user that the chart has finished decelerating.

- (void)chartViewDidEndDecelerating:(IGChartView *)chartView

Parameters

chartView

Reference to the chart view.

Declared In

IGChartView.h

chartViewDidEndDragging:willDecelerate:

Notifies the user that the chart has finished dragging.

- (void)chartViewDidEndDragging:(IGChartView *)chartView willDecelerate:(BOOL)decelerate

Parameters

chartView

Reference to the chart view.

decelerate

Indicates if the chart is still decelerating after dragging.

Declared In

IGChartView.h

chartViewDidEndZooming:

Notifies the user that the chart has finished zooming.

- (void)chartViewDidEndZooming:(IGChartView *)chartView

Parameters

chartView

Reference to the chart view.

Declared In

IGChartView.h

chartViewDidScroll:

Notifies the user that the chart has scrolled.

- (void)chartViewDidScroll:(IGChartView *)chartView

Parameters

chartView

Reference to the chart view.

Declared In

IGChartView.h

chartViewDidZoom:

Notifies the user that the chart has zoomed.

- (void)chartViewDidZoom:(IGChartView *)chartView

Parameters

chartView

Reference to the chart view.

Declared In

IGChartView.h

chartViewPlotAreaDidChange:oldRect:newRect:

Provides a notification when chart’s plot area bounds have changed.

- (void)chartViewPlotAreaDidChange:(IGChartView *)chartView oldRect:(CGRect)oldRect newRect:(CGRect)newRect

Parameters

chartView

Reference to the chart view.

oldRect

Previous plot area bounds.

newRect

New plot area bounds.

Declared In

IGChartView.h

chartview:axisRangeDidChange:oldMinimum:oldMaximum:newMinimum:newMaximum:

Provides a notification when chart’s axis range has changed.

- (void)chartview:(IGChartView *)chartView axisRangeDidChange:(IGAxis *)axis oldMinimum:(CGFloat)oldMinimum oldMaximum:(CGFloat)oldMaximum newMinimum:(CGFloat)newMinimum newMaximum:(CGFloat)newMaximum

Parameters

chartView

Reference to the chart view.

axis

Current chart axis, whose range has changed.

oldMinimum

Previous minimum value.

oldMaximum

Previous maximum vlaue.

newMinimum

New minimum value.

newMaximum

New maximum value.

Declared In

IGChartView.h