Information on this website refers to a deprecated product, and is provided only for historical reference. Please use the Version Switcher above to select an appropriate documentation website for the product you are using.

AxisBase

Type class

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

Inheritance

AxisBase does not extend any other symbol.

AxisBase is extended by ValueAxis, ValueAxis, CategoryAxis, CategoryAxis.

Properties

autoGridCount
#

Type boolean

Default true

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

axisAlpha
#

Type number

Default 1

Axis opacity. Value range is 0 - 1.

axisColor
#

Type string

Default #000000

Axis color.

axisThickness
#

Type number

Default 1

Thickness of the axis.

color
#

Type string

Default

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

dashLength
#

Type number

Default 0

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

fillAlpha
#

Type number

Default 0

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.

fillColor
#

Type string

Default #FFFFFF

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.

fontSize
#

Type number

Default

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

gridAlpha
#

Type number

Default 0.2

Opacity of grid lines.

gridColor
#

Type string

Default #000000

Color of grid lines.

gridCount
#

Type number

Default 5

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.

gridThickness
#

Type number

Default 1

Thickness of grid lines.

guides
#

Type array

Default

The array of guides belonging to this axis.

ignoreAxisWidth
#

Type boolean

Default false

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.

inside
#

Type boolean

Default false

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

labelFrequency
#

Type number

Default 1

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

labelRotation
#

Type number

Default 0

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

labelsEnabled
#

Type boolean

Default true

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

offset
#

Type number

Default 0

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

position
#

Type string

Default

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

showFirstLabel
#

Type boolean

Default true

Whether to show first axis label or not.

showLastLabel
#

Type boolean

Default true

Whether to show last axis label or not.

tickLength
#

Type number

Default 5

Length of the tick marks.

title
#

Type string

Default

Title of the axis.

titleBold
#

Type boolean

Default true

Specifies if title should be bold or not.

titleColor
#

Type string

Default

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

titleFontSize
#

Type number

Default

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

Methods

addGuide(
  guide
)

#

Returns void

Adds guide to the axis.

guide - instance of Guide

removeGuide(
  guide
)

#

Returns void

Removes guide from the axis.

guide - instance of Guide

Events

AxisBase does not have any events.

Adapters

AxisBase does not have any adapters.