SChartTickMark Class Reference

Inherits from NSObject
Declared in SChartTickMark.h
Availability Standard
Premium
Related samples

Overview

An object that represents each tick mark on the chart. The label for the tick mark is also managed by this class.

Properties

gridLineView

The UIView that is the gridLine for the tickmark.

@property (nonatomic, retain, nullable) UIView *gridLineView

Discussion

This view sits underneath the plot area. This will be nil is gridLines are not enabled.

Declared In

SChartTickMark.h

gridStripeView

The UIView that is the gridStripe for the tickmark.

@property (nonatomic, retain, nullable) UIView *gridStripeView

Discussion

This view sits underneath the plot area. This will be nil is gridStripes are not enabled.

Declared In

SChartTickMark.h

isMajor

Whether or not the tickmark is major

@property (nonatomic) BOOL isMajor

Discussion

By default, this property is set to NO.

Declared In

SChartTickMark.h

tickEnabled

Is this tick mark visible on the chart?

@property (nonatomic) BOOL tickEnabled

Discussion

By default, this property is set to YES.

Declared In

SChartTickMark.h

tickLabel

The label object to visually represent the value of this tick mark

@property (nonatomic, retain, nullable) UILabel *tickLabel

Discussion

If this is nil then no label will be displayed.

Declared In

SChartTickMark.h

tickMarkView

The UIView in which the tickmark is drawn.

@property (nonatomic, retain, nullable) UIView *tickMarkView

Discussion

This is the view in which the ‘tick’ is drawn - the line between the axis and any associated ticklabel. Note that this view does not contain the label, gridLine, or gridStripe UIViews.

Declared In

SChartTickMark.h

tickMarkX

The origin of the tickmark in X, in pixels.

@property (nonatomic) CGFloat tickMarkX

Declared In

SChartTickMark.h

tickMarkY

The origin of the tickmark in Y, in pixels.

@property (nonatomic) CGFloat tickMarkY

Declared In

SChartTickMark.h

value

A double representing the value of the tickmark.

@property (nonatomic) double value

Discussion

It is from this value that the text of the tickmark is determined.

On an SChartNumberAxis, this will be the numeric value of the tick mark. On an SChartDateTimeAxis, this will be a number of seconds elapsed from the anchorPoint of the SChartAxis. On an SChartCategoryAxis, this will be the index of the category represented.

Declared In

SChartTickMark.h

Instance Methods

compareForXAxis:

Compare the X values for this tick mark

- (NSComparisonResult)compareForXAxis:(SChartTickMark *)tm

Declared In

SChartTickMark.h

compareForYAxis:

Compare the Y values for this tick mark

- (NSComparisonResult)compareForYAxis:(SChartTickMark *)tm

Declared In

SChartTickMark.h

removeLabel

Called when the axis wishes to remove this tick mark label.

- (void)removeLabel

Discussion

Override this to provide a custom exit routine for the label

Declared In

SChartTickMark.h