Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChartAxisLabelFormat Enum

OBSOLETE

This enumeration is obsolete. Use the ChartElementFormat class instead.

Lists formats applied to axis and series labels.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Obsolete("This enumeration is obsolete. Use the ChartElementFormat class instead.")]
public enum ChartAxisLabelFormat

#Members

Name Description
Billions

Displays numbers as a billion (1 000 000 000.11 → 1B).

Currency

Adds a currency symbol to a number (3.95 → $3.95).

Day

Displays a current day (for example, 01).

Decimal

Displays a decimal number (100.11 → 100).

Exponential

Displays a number in exponential notation (1 000 → 1E+3).

FixedPoint

Displays a number with a fixed point.

LargeNumber

Uses “Thousands”, “Millions”, “Billions”, or “Trillions” format depending on the actual value.

LongDate

Displays a date in the dddd, MMMM dd, yyyy format (for example, Thursday, January 01, 1970).

LongTime

Displays a time value in the hh:mm:ss format (for example, 12:00:00 AM).

Millions

Displays numbers as a million (1 000 000.11 → 1M).

Millisecond

Displays milliseconds (for example, 010).

Month

Displays months (for example, January).

MonthAndDay

Displays a date in the MMMM dd format (for example, January 01).

MonthAndYear

Displays a date in the yyyy MMMM format (for example, 1970 January)

Percent

Displays numbers as percentile values (for example, 0.1 → 10%).

Quarter

Displays a quarter of the year for a date (for example, QI).

QuarterAndYear

Displays a quarter and year (for example, QI 1970).

ShortDate

Displays a date in the m/dd/yyyy format (for example, 1/25/1970 AM).

ShortTime

Displays time in the hh:mm format (for example, “12:00 AM”).

Thousands

Displays numbers as a thousand (1 000.11 → 1K).

Trillions

Displays numbers as a trillion (1 000 000 000 000 → 1T).

Year

Displays years (for example, 1970).

DayOfWeek

Displays a day of the week (for example, Thursday).

Hour

Displays hours (for example, 12).

LongDateLongTime

Displays a date-time value in the dddd, MMMM dd, yyyy, hh:mm:ss format (for example, Thursday, January 01, 1970, 12:00:00 AM).

Minute

Displays time in minutes (for example, 00).

Second

Displays seconds (for example, 00).

ShortDateShortTime

Displays a date in the m/dd/yyyy, hh:mm format (for example, 1/25/1970, 12:00 AM).

Default

Label values are not formatted.

#Remarks

The enumeration is obsolete now. Use the ChartElementFormat instead.

The ChartAxisLabelFormat enumeration lists formats for numeric and date-time axis labels. For example, the following code formats a value axis’s labels:

Razor
<DxChartValueAxis>
    <DxChartAxisLabel Format="ChartAxisLabelFormat.Decimal"></DxChartAxisLabel>
</DxChartValueAxis>

Run Demo: Charts - Multiple Axes

See Also