IGSparklineView Class Reference

Inherits from UIView
Declared in IGSparklineView.h

Overview

The xamSparkline™ is a lightweight charting control that can render the following chart types:

Line Area Column Win/Loss It is intended for rendering in a small scale layout such as a grid Cell. It can also be rendered stand alone.

  dataSource

Sets the data source for the pie chart view. This can be an interface that conforms to IGSparklineViewDataSource protocol or an instance of IGSparklineViewDataSourceHelper.

@property (nonatomic, assign, nullable) id<IGSparklineViewDataSource> dataSource

Declared In

IGSparklineView.h

  dataPoints

Returns an array of IGCategoryPoint objects. (read-only)

@property (nonatomic, readonly) NSMutableArray<__kindofIGCategoryPoint*> *dataPoints

Declared In

IGSparklineView.h

  brush

The IGBrush which all will be used for positive values

@property (nonatomic, retain, nullable) IGBrush *brush

Declared In

IGSparklineView.h

  negativeBrush

The IGBrush which will be used when rendering negative values.

@property (nonatomic, retain, nullable) IGBrush *negativeBrush

Declared In

IGSparklineView.h

  markerBrush

The IGBrush which will be used for positive value markers.

@property (nonatomic, retain, nullable) IGBrush *markerBrush

Declared In

IGSparklineView.h

  negativeMarkerBrush

@property (nonatomic, retain, nullable) IGBrush *negativeMarkerBrush

  firstMarkerBrush

@property (nonatomic, retain, nullable) IGBrush *firstMarkerBrush

  lastMarkerBrush

@property (nonatomic, retain, nullable) IGBrush *lastMarkerBrush

  highMarkerBrush

@property (nonatomic, retain, nullable) IGBrush *highMarkerBrush

  lowMarkerBrush

@property (nonatomic, retain, nullable) IGBrush *lowMarkerBrush

  trendLineBrush

@property (nonatomic, retain, nullable) IGBrush *trendLineBrush

  horizontalAxisBrush

@property (nonatomic, retain, nullable) IGBrush *horizontalAxisBrush

  verticalAxisBrush

@property (nonatomic, retain, nullable) IGBrush *verticalAxisBrush

  normalRangeBrush

@property (nonatomic, retain, nullable) IGBrush *normalRangeBrush

  horizontalAxisVisibility

@property (nonatomic) BOOL horizontalAxisVisibility

  verticalAxisVisibility

@property (nonatomic) BOOL verticalAxisVisibility

  markerVisibility

@property (nonatomic) BOOL markerVisibility

  negativeMarkerVisibility

@property (nonatomic) BOOL negativeMarkerVisibility

  firstMarkerVisibility

@property (nonatomic) BOOL firstMarkerVisibility

  lastMarkerVisibility

@property (nonatomic) BOOL lastMarkerVisibility

  lowMarkerVisibility

@property (nonatomic) BOOL lowMarkerVisibility

  highMarkerVisibility

@property (nonatomic) BOOL highMarkerVisibility

  normalRangeVisibility

@property (nonatomic) BOOL normalRangeVisibility

  displayNormalRangeInFront

Determines if the normal range is displayed in front or behind the sparkline points.

@property (nonatomic) BOOL displayNormalRangeInFront

Declared In

IGSparklineView.h

  firstMarkerSize

@property (nonatomic) double firstMarkerSize

  lastMarkerSize

@property (nonatomic) double lastMarkerSize

  highMarkerSize

@property (nonatomic) double highMarkerSize

  lowMarkerSize

@property (nonatomic) double lowMarkerSize

  markerSize

@property (nonatomic) double markerSize

  negativeMarkerSize

@property (nonatomic) double negativeMarkerSize

  lineThickness

@property (nonatomic) double lineThickness

  minimum

@property (nonatomic) double minimum

  maximum

@property (nonatomic) double maximum

  trendLineType

An enumeration property that determines which trend line to use.

@property (nonatomic) IGTrendLineType trendLineType

Declared In

IGSparklineView.h

  trendLinePeriod

A value that determines the moving average period. This property only applies to the follwing trend lines: ExponentialAverage, ModifiedAverage, SimpleAverage, WeightedAverage.

@property (nonatomic) NSInteger trendLinePeriod

Declared In

IGSparklineView.h

  trendLineThickness

A value that determines the thickness of the trend line.

@property (nonatomic) double trendLineThickness

Declared In

IGSparklineView.h

  normalRangeMinimum

@property (nonatomic) double normalRangeMinimum

  normalRangeMaximum

@property (nonatomic) double normalRangeMaximum

  displayType

Used to determine the type of Sparkline.

@property (nonatomic) IGSparklineDisplayType displayType

Discussion

The valid setting are:

IGSparklineDisplayTypeLine – Displays line type of chart IGSparklineDisplayTypeArea – Displays area type of chart IGSparklineDisplayTypeColumn – Displays column type of chart, same as vertical bars IGSparklineDisplayTypeWinLoss – Displays a chart visualizing Win or Loss scenario based on positive and negative values

Declared In

IGSparklineView.h

  unknownValuePlotting

An enumeration value that determines how empty values are handled. This property specifies whether null values are treated as zeroes, skipped over or if an interpolation is used.

@property (nonatomic) IGUnknownValuePlotting unknownValuePlotting

Declared In

IGSparklineView.h

  theme

An object that defines a set of brushes and fonts that will be used to style the sparkline.

@property (nonatomic, retain, nullable) id<IGSparklineThemeDefinition> theme

Declared In

IGSparklineView.h

  horizontalAxisLabel

@property (nonatomic, retain, nullable) NSObject *horizontalAxisLabel

  tooltipPinLocation

Specifies the tooltip location.

@property (nonatomic) IGTooltipPinLocation tooltipPinLocation

Discussion

This property determines where the tooltip will be positioned. The default setting uses a floating tooltip, which follows the location of the long press. Tooltip can also be pinned to top, bottom, left, or right.

Declared In

IGSparklineView.h

  delegate

Sets the IGChartViewDelegate for the chart view

@property (nonatomic, assign, nullable) id<IGSparklineViewDelegate> delegate

Declared In

IGSparklineView.h

  font

The font that will be applied to the text of the sparkline

@property (nonatomic, assign) UIFont *font

Declared In

IGSparklineView.h

  fontBrush

@property (nonatomic, retain, nullable) IGBrush *fontBrush

  exportVisualData

@property (NS_NONATOMIC_IOSONLY, readonly, strong) VisualSparklineVisualData *exportVisualData