.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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.v21.1.Core.dll

Declaration

bool ShowLabel { get; set; }

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
.DisplayUnits.ShowLabel

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®).

DisplayUnitOptionsShowLabels

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®.

See Also