CFXBorderAttributes Class Reference

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

Overview

The members of the BorderAttributes class allow customization of the border for CFXPoints and CFXSeries.

Some of the configurable attributes for Borders are color, effect, style, width, etc.

The border is the line around the point marker. The following example shows a chart with the series' borders set to a width of 3 and colored red:

The folowing image shows the same settings applied to an Area chart:

Properties

betweenSegments

Gets or sets a property which makes the border to be shown between segments.

@property(nonatomic) BOOL betweenSegments
Declared In
ChartFX.h

color

Gets or sets the color of the border of a point marker.

@property(nonatomic) UIColor color
Discussion

The effect property must be set to BorderEffect.None for the Color property to have any effect on the selected item border.

For more information regarding the Color type, please refer to the Chart FX for iOS documentation.

Declared In
ChartFX.h

effect

Gets or sets the BorderEffect for the border of a point marker.

@property(nonatomic) CFXBorderEffect effect
Discussion

The Effect property must be set to CFXBorderEffectNone for the color property to have any effect on the selected item border.

Declared In
ChartFX.h

style

Represents the style of the line for the border of a point marker.

@property(nonatomic) CFXDashStyle style
Declared In
ChartFX.h

useForLines

Gets or sets a property which applies the BorderAttributes to the lines of a line chart.

@property(nonatomic) BOOL useForLines
Declared In
ChartFX.h

visible

Gets or sets a value making the border visible or not.

@property(nonatomic) BOOL visible
Discussion

A point marker Borders are Visible by default.

Declared In
ChartFX.h

width

Gets or sets a value in pixels with the width for the border of a point marker.

@property(nonatomic) short int width
Declared In
ChartFX.h

Constants

CFXBorderEffect

Specify different border effects that may be applied to a object.

typedef enum {
   CFXNone,
   CFXRaised,
   CFXLight,
   CFXDark,
   CFXOpposite,
   CFXShadow
} CFXBorderEffect;
Constants
CFXNone
No border effect is applied. The border effect must be None for the BorderColor property to take effect.
CFXRaised
The border has raised inner and outer edges.
CFXLight
Apply light color to the border using the series/points color.
CFXDark
Apply dark color to the border using the series/points color.
CFXOpposite
Chooses between dark and light border depending on the object color. If the color is dark the chart will choose a light border color. If the color is light the chart will choose a dark border color.
CFXShadow
The border will have shadow.
Declared In
chartfx.h

CFXDashStyle

Specifies the style with which dashed lines are drawn.

typedef enum {
   CFXCustom,
   CFXDash,
   CFXDashDot,
   CFXDashDotDot,
   CFXDot,
   CFXDashStyleSolid
} CFXDashStyle;
Constants
CFXCustom
Specifies a user-defined custom dash style.
CFXDash
Specifies a line consisting of dashes.
CFXDashDot
Specifies a line consisting of a repeating pattern of dash-dot.
CFXDashDotDot
Specifies a line consisting of a repeating pattern of dash-dot-dot.
CFXDot
Specifies a line consisting of dots.
CFXDashStyleSolid
Specifies a solid line.
Declared In
chartfx.h