ChartAxisType Enum

Lists values that specify the chart's axis types.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public enum ChartAxisType

Members

Name Description
Auto

Automatically detects the series's data type and uses it to render the axis. For integer and float data types, displays numeric arguments/values divided by ticks. For other data types, displays discrete arguments/values that correspond to chart points.

Continuous

Displays numeric arguments/values divided by ticks.

Discrete

Displays discrete arguments/values that correspond to chart points.

Logarithmic

Displays numeric arguments/values that grow exponentially. Each axis argument/value equals to the specified logarithm base raised to a power (for instance, 10-2, 10-1, 100, 101, 102, etc.) This type is useful when you need to visualize a dataset of rapidly-growing values.

Remarks

Use the ChartAxisType enumeration values to set the following properties:

The following example demonstrates how to display argument axes of the Discrete type, and value axes of Continuous and Logarithmic types, respectively. The LogarithmBase property for the second chart is set to 2.

<DxChart Data="@GetData()">
    <DxChartTitle Text="@($"The loudness of sounds (continuous value axis)")" />
    <DxChartLegend Visible="false" />
    <DxChartArgumentAxis Type="ChartAxisType.Discrete" />
    <DxChartValueAxis Type="ChartAxisType.Continuous" />
    <DxChartLineSeries ArgumentField="@((DataPoint s) => s.Argument)" ValueField="@((DataPoint s) => s.Value)" />
</DxChart>
<DxChart Data="@GetData()">
    <DxChartTitle Text="@($"The loudness of sounds (logarithmic value axis)")" />
    <DxChartLegend Visible="false" />
    <DxChartArgumentAxis Type="ChartAxisType.Discrete" />
    <DxChartValueAxis Type="ChartAxisType.Logarithmic" LogarithmBase="2" />
    <DxChartLineSeries ArgumentField="@((DataPoint s) => s.Argument)" ValueField="@((DataPoint s) => s.Value)" />
</DxChart>

Blazor-Chart-Axis-Types

Online Demo

Charts - Axis Types

See Also