DisplayUnitOptionsBase Class
The base class for display unit settings of chart axes.
Declaration
public abstract class DisplayUnitOptionsBase extends ChartElementBase
Remarks
Display units divide axis values (for example, by 1,000 or 1,000,000) to shorten axis labels. The display unit label shows the unit.
DisplayUnitOptions and DisplayUnitOptionsEx classes derive from the DisplayUnitOptionsBase class.
Inherited Members
Inheritance
Methods
deepClone() Method
Returns a deep copy of this DisplayUnitOptionsBase instance.
Declaration
public DisplayUnitOptionsBase deepClone()
Returns
| Type | Description |
|---|---|
DisplayUnitOptionsBase |
A deep copy of this |
getFill() Method
Returns fill settings of the display unit label.
Declaration
public Fill getFill()
Returns
| Type | Description |
|---|---|
| Fill | Fill settings of the display unit label. |
getOutlineStyle() Method
Returns outline settings of the display unit label.
Declaration
public OutlineStyle getOutlineStyle()
Returns
| Type | Description |
|---|---|
| OutlineStyle | Outline settings of the display unit label. |
getShowLabel() Method
Returns whether the chart displays the display unit label.
Declaration
public boolean getShowLabel()
Returns
| Type | Description |
|---|---|
| boolean |
|
getUnitType() Method
Returns the display unit type.
Declaration
public DisplayUnitType getUnitType()
Returns
| Type | Description |
|---|---|
| DisplayUnitType | The display unit type. |
setFill(Fill value) Method
Sets fill settings of the display unit label.
Declaration
public void setFill(Fill value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | Fill | Fill settings of the display unit label. |
setOutlineStyle(OutlineStyle value) Method
Sets outline settings of the display unit label.
Declaration
public void setOutlineStyle(OutlineStyle value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OutlineStyle | Outline settings of the display unit label. |
setShowLabel(boolean value) Method
Sets whether the chart displays the display unit label.
Declaration
public void setShowLabel(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
Remarks
If you do not call the setShowLabel(value) method, the API uses false.
setUnitType(DisplayUnitType value) Method
Sets the display unit type.
Declaration
public void setUnitType(DisplayUnitType value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | DisplayUnitType | The display unit type. |
Exceptions
| Type | Description |
|---|---|
| ArgumentException | Thrown if you call the |
Remarks
If you do not call the setUnitType(value) method, the API uses DisplayUnitType.NONE. To specify a custom display unit for a value axis in a standard chart, call the setUnitType(DisplayUnitType.CUSTOM) method and the DisplayUnitOptions.setCustomUnit(value) method.
Note
The DisplayUnitType.PERCENTAGE value applies to axes in chart types introduced in Microsoft Excel 2016 (DisplayUnitOptionsEx). Value axes of standard charts (DisplayUnitOptions) do not support this value.