Skip to main content

ChartElementFormat.FromLdmlString(String) Method

Sets a custom format for Chart labels.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor


public static ChartElementFormat FromLdmlString(
    string ldmlString


Name Type Description
ldmlString String

An LDML string that specifies a custom label format.


Type Description

A ChartElementFormat enumeration value.


Use the FromLdmlString method to specify a custom label format for date-time and numeric values. You can use this method for axis and series labels.

In the following code snippet, the formatting pattern is dd M yy, where dd is the day, MMMMM is the first letter of the month, and yy is the last two digits of the year:

<DxChart Data="@forecasts">
        <DxChartAxisLabel Format='ChartElementFormat.FromLdmlString("d MMMMM yy")'></DxChartAxisLabel>
    @* ... *@

Formatted string

See Also