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

DataLabelBase.ShowValue Property

Gets or sets a value indicating whether the data point value should be displayed in a data label.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v20.1.Core.dll


bool ShowValue { get; set; }
Property ShowValue As Boolean

Property Value

Type Description

true, to show value labels; otherwise, false.


The example below demonstrates how to create a clustered column chart and display value labels outside the end of each column by setting the DataLabelBase.ShowValue property to true.

Dim worksheet As Worksheet = workbook.Worksheets("chartTask3")
workbook.Worksheets.ActiveWorksheet = worksheet

' Create a chart and specify its location.
Dim chart As Chart = worksheet.Charts.Add(ChartType.ColumnClustered, worksheet("B2:D4"))
chart.TopLeftCell = worksheet.Cells("H2")
chart.BottomRightCell = worksheet.Cells("N14")

' Show data labels.
chart.Views(0).DataLabels.ShowValue = True
See Also