Class AxisBase

AxisBase is the base class for ValueAxis and CategoryAxis. It can not be instantiated explicitly.

Hierarchy

Index

Properties

Methods

Properties

public autoGridCount: boolean

Specifies whether number of gridCount is specified automatically, acoarding to the axis size.

default

true

public axisAlpha: number

Axis opacity. Value range is 0 - 1.

default

1

public axisColor: string

Axis color. #000000

public axisThickness: number

Thickness of the axis.

default

1

public color: string

Color of axis value labels. Will use chart's color if not set.

public dashLength: number

Length of a dash. 0 means line is not dashed.

public fillAlpha: number

Fill opacity. Every second space between grid lines can be filled with color. Set fillAlpha to a value greater than 0 to see the fills.

public fillColor: string

Fill color. Every second space between grid lines can be filled with color. Set fillAlpha to a value greater than 0 to see the fills. #FFFFFF

public fontSize: number

Size of value labels text. Will use chart's fontSize if not set.

public gridAlpha: number

Opacity of grid lines. 0.2

public gridColor: string

Color of grid lines. #000000

public gridCount: number

Number of grid lines. In case this is value axis, or your categoryAxis parses dates, the number is approximate. The default value is 5. If you set autoGridCount to true, this property is ignored.

default

5

public gridThickness: number

Thickness of grid lines.

default

1

public guides: Array<any>

The array of guides belonging to this axis.

public ignoreAxisWidth: boolean

If autoMargins of a chart is set to true, but you want this axis not to be measured when calculating margin, set ignoreAxisWidth to true.

public inside: boolean

Specifies whether values should be placed inside or outside plot area.

public labelFrequency: number

Frequency at which labels should be placed. Doesn't work for CategoryAxis if parseDates is set to true.

default

1

public labelRotation: number

Rotation angle of a label. Only horizontal axis' values can be rotated. If you set this for vertical axis, the setting will be ignored.

public labelsEnabled: boolean

Specifies whether axis displays category axis' labels and value axis' values.

default

true

public offset: number

The distance of the axis to the plot area, in pixels. Negative values can also be used.

public position: string

Possible values are: "top", "bottom", "left", "right". If axis is vertical, default position is "left". If axis is horizontal, default position is "bottom".

public showFirstLabel: boolean

Whether to show first axis label or not.

default

true

public showLastLabel: boolean

Whether to show last axis label or not.

default

true

public tickLength: number

Length of the tick marks.

default

5

public title: string

Title of the axis.

public titleBold: boolean

Specifies if title should be bold or not.

default

true

public titleColor: string

Color of axis title. Will use text color of chart if not set any.

public titleFontSize: number

Font size of axis title. Will use font size of chart plus two pixels if not set any.

Methods

public addGuide(guide: Guide): any

Adds guide to the axis.

Parameters

Returns

any

public removeGuide(guide: Guide): any

Removes guide from the axis.

Parameters

Returns

any