Back to Devexpress

FinancialSeriesLabel Class

maui-devexpress-dot-maui-dot-charts-56a5a5cb.md

latest3.5 KB
Original Source

FinancialSeriesLabel Class

Stores point label settings for the Candlestick and Stock series.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public class FinancialSeriesLabel :
    SeriesLabel

The following members return FinancialSeriesLabel objects:

Remarks

You can accompany series’ data points with labels to show point values as text on a chart:

To enable labels for CandleStickSeries or StockSeries, set the series’ Label property to the FinancialSeriesLabel object, and use this object’s properties to adjust the label settings:

  • TextPattern - Formats series label text.
    A pattern includes regular text (which is displayed as is) and placeholder strings enclosed in braces. Placeholders define which values are shown in labels. You can use the following placeholders to specify the text pattern for financial series’ labels:

  • Position , Indent - Specify how a label is positioned relative to a series point.

  • Style - Provides access to the SeriesLabelStyle object that stores label appearance settings (TextStyle).

  • Visible - Allows you to show or hide labels for the series.

For example, the following code configures point labels for the candlestick series.

xml
<dxc:CandleStickSeries>
    <dxc:CandleStickSeries.Label>
        <dxc:FinancialSeriesLabel Position="Top" 
                                  Indent="15" 
                                  TextPattern="{}{C$#.#}"/>
    </dxc:CandleStickSeries.Label>
</dxc:CandleStickSeries>

Implements

IElementController

INotifyPropertyChanged

Inheritance

System.Object BindableObject Element ChartElementBase ChartElement StyledElement SeriesLabel FinancialSeriesLabel

Extension Methods

Yield<FinancialSeriesLabel>()

YieldIfNotNull<FinancialSeriesLabel>()

See Also

FinancialSeriesLabel Members

DevExpress.Maui.Charts Namespace