Skip to main content

ValueAxis Class

A value axis in a standard chart.

Declaration

public class ValueAxis extends Axis

Remarks

A value axis displays series values. Scatter and bubble charts also use a value axis as the argument axis.

Refer to the following help topic for additional information: Customize Chart Axes — Presentation API for Java.

Inheritance

See Also

ValueAxis()

Initializes a new instance of the ValueAxis class.

Declaration

public ValueAxis()

Methods

deepClone() Method

Returns a deep copy of this ValueAxis instance.

Declaration

public ValueAxis deepClone()

Returns

Type Description
ValueAxis

A deep copy of this ValueAxis.

getAxisType() Method

Returns the axis type.

Declaration

public AxisType getAxisType()

Returns

Type Description
AxisType

The axis type, AxisType.VALUE.

getCrossPositionType() Method

Returns the position at which the value axis crosses the category axis.

Declaration

public AxisCrossPositionType getCrossPositionType()

Returns

Type Description
AxisCrossPositionType

The crossing position.

getDisplayUnit() Method

Returns display unit settings for axis labels.

Declaration

public DisplayUnitOptions getDisplayUnit()

Returns

Type Description
DisplayUnitOptions

Display unit settings, or null if the axis does not use display units.

getMajorUnit() Method

Returns the interval between major tick marks.

Declaration

public double getMajorUnit()

Returns

Type Description
double

The interval between major tick marks.

getMinorUnit() Method

Returns the interval between minor tick marks.

Declaration

public double getMinorUnit()

Returns

Type Description
double

The interval between minor tick marks.

setCrossPositionType(AxisCrossPositionType value) Method

Sets the position at which the value axis crosses the category axis.

Declaration

public void setCrossPositionType(AxisCrossPositionType value)

Parameters

Name Type Description
value AxisCrossPositionType

The crossing position.

Remarks

The setCrossPositionType(value) method accepts the following values:

Value Description
BETWEEN_TICK_MARKS Indicates that the value axis crosses the category axis between tick marks.
ON_TICK_MARKS Indicates that the value axis crosses the category axis on tick marks.

setDisplayUnit(DisplayUnitOptions value) Method

Sets display unit settings for axis labels.

Declaration

public void setDisplayUnit(DisplayUnitOptions value)

Parameters

Name Type Description
value DisplayUnitOptions

Display unit settings.

Remarks

Display units divide axis values (for example, by 1,000 or 1,000,000) to shorten axis labels. Refer to the DisplayUnitOptions class description for additional information.

setMajorUnit(double value) Method

Sets the interval between major tick marks.

Declaration

public void setMajorUnit(double value)

Parameters

Name Type Description
value double

The interval between major tick marks.

Exceptions

Type Description
ArgumentException

Thrown if the axis is in a chart on a slide and the value parameter is negative.

Remarks

The value must be 0 or greater. Call the setMajorUnit(0) method to use an automatic interval between major tick marks. If you do not call the setMajorUnit(value) method, the API uses 0.

setMinorUnit(double value) Method

Sets the interval between minor tick marks.

Declaration

public void setMinorUnit(double value)

Parameters

Name Type Description
value double

The interval between minor tick marks.

Exceptions

Type Description
ArgumentException

Thrown if the axis is in a chart on a slide and the value parameter is negative.

Remarks

The value must be 0 or greater. Call the setMinorUnit(0) method to use an automatic interval between minor tick marks. If you do not call the setMinorUnit(value) method, the API uses 0.