CFXTitle Class Reference

Inherits from
Conforms to
Framework
Availability
Available in iOS 5.0 and later.
Companion guide
Declared in
ChartFX.h

Overview

A title is a string that can be assigned to any portion outside the main chart area. Chart FX for iOS supports the creation of many titles through the titles property in the CFXChart class.

titles are also available for CFXAxisX and CFXAxisY.

Titles can be positioned, aligned and formatted according to the different properties supported by this class and the CFXTitleDockable class.

Properties

alignment

Allows you to set the alignment of the specified title.

@property(nonatomic) CFXStringAlignment alignment
Discussion

The Alignment property may also be used for Axis title by utilizing the CFXAxis class.

The lineAlignment property can be used to position the top title vertically in the title area.

Declared In
ChartFX.h

indentation

Specifies the space in pixels to the front and back of the selected title when read from top to bottom.

@property(nonatomic) int indentation
Declared In
ChartFX.h

lineAlignment

Gets or sets the vertical alignment for the lines of the chart title.

@property(nonatomic) CFXStringAlignment lineAlignment
Discussion

By changing the LineAlignment value, you can control the distance from the title to the chart.

The alignment property allows you set the title left, center or right justified in the chart.

Declared In
ChartFX.h

separation

Specifies the space in pixels above and below the selected title text when read from right to left.

@property(nonatomic) int separation
Discussion

The indentation property may be used to add space in pixels to the front and back of the title string when read from right to left.

Declared In
ChartFX.h

text

Gets or sets the text for the selected title.

@property(nonatomic) NSString *text
Discussion

The textColor property allows you to change the color of the specified title text.

Declared In
ChartFX.h

Constants

CFXStringAlignment

The StringAlignment type specifies how a string is aligned in reference to the bounding rectangle. A bounding rectangle is used to define the area in which the text displays.

typedef enum {

} CFXStringAlignment;
Constants
CFX
Specifies that alignment is towards the origin of the bounding rectangle. May be used for alignment of characters along the line or for alignment of lines within the rectangle. For a right to left bounding rectangle, the origin is at the upper right.
CFX
Specifies that alignment is centered between origin and extent (width) of the formatting rectangle.
CFX
Specifies that alignment is to the far extent (right side) of the formatting rectangle.
Declared In
chartfx.h