ChartAxis
Overview
ChartAxis is a class in Aspose.Words FOSS for Java.
Inherits from: IDmlChartTitleHolder, IDmlExtensionListSource, INumberFormatProvider, and 2 more.
Represents the axis options of the chart.
Edition status of its 66 listed members (a property and its accessor methods are listed separately, overloads once): 66 not yet exercised by a verified example.
This class declares 44 methods for ChartAxis objects in Java programs.
Available methods include: getAxisBetweenCategories, getBaseTimeUnit, getCategoryType, getCrosses, getCrossesAt, getDisplayUnit, getDocument, getFormat, getHidden, getMajorTickMark, getMajorUnit, getMajorUnitIsAuto, and 30 additional methods.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: axisBetweenCategories, baseTimeUnit, categoryType, crosses, crossesAt, displayUnit, and 18 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
type | int | Read | Returns type of the axis. |
categoryType | int | Read/Write | Gets or sets type of the category axis. |
crosses | int | Read/Write | Specifies how this axis crosses the perpendicular axis. |
crossesAt | double | Read/Write | Specifies where on the perpendicular axis the axis crosses. |
reverseOrder | boolean | Read/Write | Returns or sets a flag indicating whether values of axis should be displayed in reverse order, i.e. from max to min. |
majorTickMark | int | Read/Write | Returns or sets the major tick marks. |
minorTickMark | int | Read/Write | Returns or sets the minor tick marks for the axis. |
majorUnit | double | Read/Write | Returns or sets the distance between major tick marks. |
majorUnitIsAuto | boolean | Read/Write | Gets or sets a flag indicating whether default distance between major tick marks shall be used. |
majorUnitScale | int | Read/Write | Returns or sets the scale value for major tick marks on the time category axis. |
minorUnit | double | Read/Write | Returns or sets the distance between minor tick marks. |
minorUnitIsAuto | boolean | Read/Write | Gets or sets a flag indicating whether default distance between minor tick marks shall be used. |
minorUnitScale | int | Read/Write | Returns or sets the scale value for minor tick marks on the time category axis. |
baseTimeUnit | int | Read/Write | Returns or sets the smallest time unit that is represented on the time category axis. |
numberFormat | ChartNumberFormat | Read | Returns a ChartNumberFormat object that allows defining number formats for the axis. |
displayUnit | AxisDisplayUnit | Read | Specifies the scaling value of the display units for the value axis. |
axisBetweenCategories | boolean | Read/Write | Gets or sets a flag indicating whether the value axis crosses the category axis between categories. |
scaling | AxisScaling | Read | Provides access to the scaling options of the axis. |
tickMarkSpacing | int | Read/Write | Gets or sets the interval, at which tick marks are drawn. |
hidden | boolean | Read/Write | Gets or sets a flag indicating whether this axis is hidden or not. |
title | ChartAxisTitle | Read | Provides access to the axis title properties. |
tickLabels | AxisTickLabels | Read | Provides access to the properties of the axis tick mark labels. |
format | ChartFormat | Read | Provides access to line formatting of the axis and fill of the tick labels. |
document | DocumentBase | Read | Returns the document containing the parent chart. |
Methods
| Signature | Description |
|---|---|
getType() → int | Returns type of the axis. |
getCategoryType() → int | Gets or sets type of the category axis. |
setCategoryType(value: int) | Sets the category type value. |
getCrosses() → int | Specifies how this axis crosses the perpendicular axis. |
setCrosses(value: int) | Sets the crosses value. |
getCrossesAt() → double | Specifies where on the perpendicular axis the axis crosses. |
setCrossesAt(value: double) | Sets the crosses at value. |
getReverseOrder() → boolean | Returns or sets a flag indicating whether values of axis should be displayed in reverse order, i.e. from max to min. |
setReverseOrder(value: boolean) | Sets the reverse order value. |
getMajorTickMark() → int | Returns or sets the major tick marks. |
setMajorTickMark(value: int) | Sets the major tick mark value. |
getMinorTickMark() → int | Returns or sets the minor tick marks for the axis. |
setMinorTickMark(value: int) | Sets the minor tick mark value. |
getMajorUnit() → double | Returns or sets the distance between major tick marks. |
setMajorUnit(value: double) | Sets the major unit value. |
getMajorUnitIsAuto() → boolean | Gets or sets a flag indicating whether default distance between major tick marks shall be used. |
setMajorUnitIsAuto(value: boolean) | Sets the major unit is auto value. |
getMajorUnitScale() → int | Returns or sets the scale value for major tick marks on the time category axis. |
setMajorUnitScale(value: int) | Sets the major unit scale value. |
getMinorUnit() → double | Returns or sets the distance between minor tick marks. |
setMinorUnit(value: double) | Sets the minor unit value. |
getMinorUnitIsAuto() → boolean | Gets or sets a flag indicating whether default distance between minor tick marks shall be used. |
setMinorUnitIsAuto(value: boolean) | Sets the minor unit is auto value. |
getMinorUnitScale() → int | Returns or sets the scale value for minor tick marks on the time category axis. |
setMinorUnitScale(value: int) | Sets the minor unit scale value. |
getBaseTimeUnit() → int | Returns or sets the smallest time unit that is represented on the time category axis. |
setBaseTimeUnit(value: int) | Sets the base time unit value. |
getNumberFormat() → ChartNumberFormat | Returns a ChartNumberFormat object that allows defining number formats for the axis. |
getDisplayUnit() → AxisDisplayUnit | Specifies the scaling value of the display units for the value axis. |
getAxisBetweenCategories() → boolean | Gets or sets a flag indicating whether the value axis crosses the category axis between categories. |
setAxisBetweenCategories(value: boolean) | Sets the axis between categories value. |
getScaling() → AxisScaling | Provides access to the scaling options of the axis. |
getTickMarkSpacing() → int | Gets or sets the interval, at which tick marks are drawn. |
setTickMarkSpacing(value: int) | Sets the tick mark spacing value. |
getHidden() → boolean | Gets or sets a flag indicating whether this axis is hidden or not. |
setHidden(value: boolean) | Sets the hidden value. |
hasMajorGridlines() → boolean | Gets or sets a flag indicating whether the axis has major gridlines. |
hasMajorGridlines(value: boolean) | Calls hasMajorGridlines(value) on this ChartAxis instance. |
hasMinorGridlines() → boolean | Gets or sets a flag indicating whether the axis has minor gridlines. |
hasMinorGridlines(value: boolean) | Calls hasMinorGridlines(value) on this ChartAxis instance. |
getTitle() → ChartAxisTitle | Provides access to the axis title properties. |
getTickLabels() → AxisTickLabels | Provides access to the properties of the axis tick mark labels. |
getFormat() → ChartFormat | Provides access to line formatting of the axis and fill of the tick labels. |
getDocument() → DocumentBase | Returns the document containing the parent chart. |