AxisBase
Type class
AxisBase is the base class for ValueAxis and CategoryAxis. It can not be instantiated explicitly.
Sources
This information about AxisBase is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
AxisBase does not extend any other symbol.
AxisBase is extended by ValueAxis, ValueAxis, CategoryAxis, CategoryAxis.
Properties
autoGridCountType
booleanDefaulttrueSpecifies whether number of gridCount is specified automatically, acoarding to the axis size.
axisAlphaType
numberDefault1Axis opacity. Value range is 0 - 1.
axisColorType
stringDefault#000000Axis color.
axisThicknessType
numberDefault1Thickness of the axis.
colorType
stringDefaultColor of axis value labels. Will use chart's color if not set.
dashLengthType
numberDefault0Length of a dash. 0 means line is not dashed.
fillAlphaType
numberDefault0Fill opacity. Every second space between grid lines can be filled with color. Set fillAlpha to a value greater than 0 to see the fills.
fillColorType
stringDefault#FFFFFFFill color. Every second space between grid lines can be filled with color. Set fillAlpha to a value greater than 0 to see the fills.
fontSizeType
numberDefaultSize of value labels text. Will use chart's fontSize if not set.
gridAlphaType
numberDefault0.2Opacity of grid lines.
gridColorType
stringDefault#000000Color of grid lines.
gridCountType
numberDefault5Number 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.
gridThicknessType
numberDefault1Thickness of grid lines.
guidesType
arrayDefaultThe array of guides belonging to this axis.
ignoreAxisWidthType
booleanDefaultfalseIf autoMargins of a chart is set to true, but you want this axis not to be measured when calculating margin, set ignoreAxisWidth to true.
insideType
booleanDefaultfalseSpecifies whether values should be placed inside or outside plot area.
labelFrequencyType
numberDefault1Frequency at which labels should be placed. Doesn't work for CategoryAxis if parseDates is set to true.
labelRotationType
numberDefault0Rotation angle of a label. Only horizontal axis' values can be rotated. If you set this for vertical axis, the setting will be ignored.
labelsEnabledType
booleanDefaulttrueSpecifies whether axis displays category axis' labels and value axis' values.
offsetType
numberDefault0The distance of the axis to the plot area, in pixels. Negative values can also be used.
positionType
stringDefaultPossible values are: "top", "bottom", "left", "right". If axis is vertical, default position is "left". If axis is horizontal, default position is "bottom".
showFirstLabelType
booleanDefaulttrueWhether to show first axis label or not.
showLastLabelType
booleanDefaulttrueWhether to show last axis label or not.
tickLengthType
numberDefault5Length of the tick marks.
titleType
stringDefaultTitle of the axis.
titleBoldType
booleanDefaulttrueSpecifies if title should be bold or not.
titleColorType
stringDefaultColor of axis title. Will use text color of chart if not set any.
titleFontSizeType
numberDefaultFont size of axis title. Will use font size of chart plus two pixels if not set any.
Methods
addGuide()Returns
voidAdds guide to the axis.
guide - instance of Guide
removeGuide()Returns
voidRemoves guide from the axis.
guide - instance of Guide
Events
AxisBase does not have any events.