ChartElementFormat.FromLdmlString(String) Method
Sets a custom format for chart labels.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
public static ChartElementFormat FromLdmlString(
string ldmlString
)
#Parameters
Name | Type | Description |
---|---|---|
ldml |
String | An LDML string that specifies a custom label format. |
#Returns
Type | Description |
---|---|
Chart |
A Chart |
#Remarks
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">
<DxChartArgumentAxis>
<DxChartAxisLabel Format='ChartElementFormat.FromLdmlString("d MMMMM yy")'></DxChartAxisLabel>
</DxChartArgumentAxis>
@* ... *@
</DxChart>