DisplayUnitOptions.ShowLabel Property
Gets or sets a value indicating whether to show the display unit label along the value axis.
Namespace: DevExpress.Spreadsheet.Charts
Assembly: DevExpress.Spreadsheet.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, to display the unit label; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to ShowLabel |
---|---|
Axis |
|
Remarks
If the chart data contains large numbers, you can shorten the text displayed in the value axis labels by using the DisplayUnitOptions.UnitType property. For example, if the value axis stretches from 10,000 to 100,000, set the DisplayUnitOptions.UnitType property to DisplayUnitType.Thousands to display numbers along the value axis as 10 to 100. Use the ShowLabel property to show a label that describes what the selected units express (Hundreds, Thousands, Millions, etc.). To specify the custom text for the display unit label, use the DisplayUnitOptions.Label property.
The image below shows the chart with the ShowLabel option turned on (the chart is displayed in Microsoft® Excel®).
Note
The ShowLabel property has no effect on the visual appearance of a chart when the document is loaded in the SpreadsheetControl. However, this property can be accessed in code, exported in supported formats and visualized in Microsoft® Excel®.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowLabel property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.