Type class
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 Default Specifies whether number of gridCount is specified automatically, acoarding to the axis size. |
---|---|
autoRotateAngle # |
Type Angle of label rotation, if the number of series exceeds autoRotateCount. Works on horizontal axis only. It is not recommended to use it with charts with zoom/scroll features, as chart adjusts margin only based on initial render. |
autoRotateCount # |
Type If the number of category axis items will exceed the autoRotateCount, the labels will be rotated by autoRotateAngle degree. Works on horizontal axis only. Not recommended with scrollable/zoomable charts. |
axisAlpha # |
Type Default Axis opacity. Value range is 0 - 1. |
axisColor # |
Type Default Axis color. |
axisThickness # |
Type Default Thickness of the axis. |
boldLabels # |
Type Default Specifies if axis labels should be bold or not. |
boldPeriodBeginning # |
Type Default When parse dates is on for the category axis, the chart will try to highlight the beginning of the periods, like month, in bold. Set this to false to disable the functionality. |
centerLabelOnFullPeriod # |
Type Default This setting works only when parseDates is set to true and equalSpacing is set to false. In case you set it to false, labels will never be centered between grid lines. |
centerLabels # |
Type Default Force-centers labels of date-based axis (in case it's category axis, equalSpacing must be false) |
centerRotatedLabels # |
Type Default In case you have rotated labels on horizontal axis, you can force-center them using this property. |
color # |
Type Color of axis value labels. Will use chart's color if not set. |
dashLength # |
Type Default Length of a dash. 0 means line is not dashed. |
dateFormats # |
Type Default Date formats of different periods. Possible period values: fff - milliseconds, ss - seconds, mm - minutes, hh - hours, DD - days, MM - months, WW - weeks, YYYY - years. Check this page for date formatting strings. |
fillAlpha # |
Type Default 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 Default 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. |
firstDayOfWeek # |
Type Default Sets first day of the week. 0 is Sunday, 1 is Monday, etc. |
fontSize # |
Type Size of value labels text. Will use chart's fontSize if not set. |
gridAlpha # |
Type Default Opacity of grid lines. |
gridColor # |
Type Default Color of grid lines. |
gridCount # |
Type Default 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 Default Thickness of grid lines. |
guides # |
Type Default The array of guides belonging to this axis. |
ignoreAxisWidth # |
Type Default 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 Default Specifies whether values should be placed inside or outside plot area. |
labelFrequency # |
Type Default Frequency at which labels should be placed. Doesn't work for CategoryAxis if parseDates is set to true. |
labelOffset # |
Type Default You can use it to adjust position of axes labels. Works both with CategoryAxis and ValueAxis. |
labelRotation # |
Type Default Rotation angle of a label. Only horizontal axis' values can be rotated. If you set this for vertical axis, the setting will be ignored. Possible values from -90 to 90. |
labelsEnabled # |
Type Default Specifies whether axis displays category axis' labels and value axis' values. |
listeners # |
Type You can add listeners of events using this property. Example: listeners = [{"event":"clickItem", "method":handleEvent}]; |
markPeriodChange # |
Type Default If you set it to false, the start of longer periods won't use a different date format and won't be bold. |
minHorizontalGap # |
Type Default This property is used when calculating grid count (when autoGridCount is true). It specifies minimum cell width required for one span between grid lines. |
minorGridAlpha # |
Type Default Opacity of minor grid. In order minor to be visible, you should set minorGridEnabled to true. |
minorGridEnabled # |
Type Default Specifies if minor grid should be displayed. NOTE: If equalSpacing is set to true, this setting will be ignored. |
minorTickLength # |
Type Default Length of minor grid tick. |
minVerticalGap # |
Type Default This property is used when calculating grid count (when autoGridCount is true). It specifies minimum cell height required for one span between grid lines. |
offset # |
Type Default The distance of the axis to the plot area, in pixels. Negative values can also be used. |
position # |
Type 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 Default Whether to show first axis label or not. This works properly only on ValueAxis. With CategoryAxis it wont work 100%, it depends on the period, zooming, etc. There is no guaranteed way to force category axis to show or hide first label. |
showLastLabel # |
Type Default Whether to show last axis label or not. This works properly only on ValueAxis. With CategoryAxis it wont work 100%, it depends on the period, zooming, etc. There is no guaranteed way to force category axis to show or hide last label. |
tickLength # |
Type Default Length of the tick marks. |
title # |
Type Title of the axis. |
titleBold # |
Type Default Specifies if title should be bold or not. |
titleColor # |
Type Color of axis title. Will use text color of chart if not set any. |
titleFontSize # |
Type Font size of axis title. Will use font size of chart plus two pixels if not set any. |
titleRotation # |
Type Rotation of axis title. Useful if you want to make vertical axis title to be shown from top to down. |
Methods
addGuide( |
Returns Adds guide to the axis. guide - instance of Guide |
---|---|
removeGuide( |
Returns Removes guide from the axis. guide - instance of Guide |
Events
#clickGuide |
Param Dispatched when user clicks on a guide. |
---|---|
#clickItem |
Param Fired if user clicks on axis label. |
#rollOutGuide |
Param Dispatched when user rolls-out of the guide. |
#rollOutItem |
Param Fired if user rolls-out of the axis label. |
#rollOverGuide |
Param Dispatched when user rolls-over some guide. |
#rollOverItem |
Param Fired if user rolls-over axis label. |
Adapters
AxisBase does not have any adapters.