EmptyChartText Class

Contains options of the text which is to be displayed at runtime when a chart has no data to display.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

public class EmptyChartText :
    NotificationBase
Public Class EmptyChartText
    Inherits NotificationBase

Related API Members

The following members accept/return EmptyChartText objects:

Library Related API Members
WinForms Controls ChartControl.EmptyChartText
ASP.NET Controls and MVC Extensions ChartControlSettings.EmptyChartText
WebChartControl.EmptyChartText
Reporting XRChart.EmptyChartText

Remarks

An object of the EmptyChartText type can be accessed via the ChartControl.EmptyChartText (WebChartControl.EmptyChartText) property.

Examples

This example demonstrates how to provide a text for a chart, which it should display at runtime, when there's no data to be represented by the chart.

EmptyChartText myText = chartControl1.EmptyChartText;
myText.Antialiasing = true;
myText.Text = "There are no visible series to represent in the chart.";
myText.TextColor = Color.Beige;
See Also