PointLabelOptions.ContentType Property
Gets or sets the type of content displayed within series point labels.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v24.2.Core.dll
NuGet Package: DevExpress.Dashboard.Core
#Declaration
[DefaultValue(PointLabelContentTypeEx.None)]
public PointLabelContentTypeEx ContentType { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Point |
None | A Point |
Available values:
Name | Description |
---|---|
None | Point labels are not displayed. |
Argument | The argument value. |
Series |
The name of the series. |
Value | The summary value. |
Percent | The percent value. Note that this value can be displayed for full stacked series only. |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Content |
---|---|
Chart |
|
#Remarks
Note that the PointLabelContentTypeEx is a flags enumeration. This means that you can combine several values to display them within point labels. For instance, specify the ContentType property in the following way to display arguments and corresponding values within point labels for a newly created series:
using DevExpress.DashboardCommon;
// ...
SimpleSeries salesSeries = new SimpleSeries(SimpleSeriesType.Bar);
salesSeries.Value = new Measure("Sales");
salesSeries.PointLabelOptions.ContentType = PointLabelContentTypeEx.Argument | PointLabelContentTypeEx.Value;