Back to Devexpress

ChartElementFormat Class

blazor-devexpress-dot-blazor-f4a43eb8.md

latest5.3 KB
Original Source

ChartElementFormat Class

Lists formats applied to axis and series labels.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[JsonConverter(typeof(FormatJsonConverter))]
public sealed class ChartElementFormat

The following members return ChartElementFormat objects:

Show 32 links

Remarks

Use the ChartElementFormat class to specify an axis and series label’s format. The class contains properties for date-time formats and methods for numeric formats. You can also define a custom format based on the LDML standard.

In the following example, the Chart component applies the Month and Day format to the argument axis. The value axis uses the Decimal number format.

razor
<DxChart Data="@forecasts">
    <DxChartArgumentAxis>
        <DxChartAxisLabel Format="ChartElementFormat.MonthAndDay"></DxChartAxisLabel>
        <DxChartAxisTitle Text="Date"></DxChartAxisTitle>
    </DxChartArgumentAxis>
    <DxChartValueAxis>
        <DxChartAxisLabel Format="ChartElementFormat.Decimal()"></DxChartAxisLabel>
        <DxChartAxisTitle Text="Temperature, C"></DxChartAxisTitle>
    </DxChartValueAxis>
    @* ... *@
</DxChart>

Run Demo: Charts - Axes

Inheritance

Object ChartElementFormat

See Also

ChartElementFormat Members

DevExpress.Blazor Namespace