ChartControl.SmallChartText Property
Gets the settings for the text to be displayed in the chart control, when it’s too small to fit the diagram.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.1.UI.dll
NuGet Package: DevExpress.Win.Charts
Declaration
Property Value
Type | Description |
---|---|
SmallChartText | A SmallChartText object, representing the small chart text options. |
Remarks
Use the SmallChartText property, to access and customize the settings of the text, which is displayed by a chart at runtime, if the chart’s dimensions are too small for its diagram to be drawn.
To access options of the text that inform that the chart has no data to display, use the ChartControl.EmptyChartText property.
For the WebChartControl, use the similar WebChartControl.SmallChartText property.
Example
This example demonstrates how to provide a custom text for a chart, when it’s too small for its diagram to be drawn.
SmallChartText myText = chartControl1.SmallChartText;
myText.Antialiasing = true;
myText.Text = "Increase the chart's size, to view its layout.";
myText.TextColor = Color.Beige;