Back to Devexpress

DxChartAxisBase<T>.Visible Property

blazor-devexpress-dot-blazor-dot-dxchartaxisbase-1-0c4298e7.md

latest1.5 KB
Original Source

DxChartAxisBase<T>.Visible Property

Specifies axis visibility.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(true)]
[Parameter]
public bool Visible { get; set; }

Property Value

TypeDefaultDescription
Booleantrue

true to display an axis; otherwise, false.

|

Remarks

Disable the Visible property to hide the axis. The following code snippet hides both value and argument axes:

razor
<DxChart Data="@forecasts">
    <DxChartLineSeries ArgumentField="@((WeatherForecast i) => i.Date)"
                       ValueField="@((WeatherForecast i) => i.TemperatureF)"
                       Name="Temperature, F" />
    <DxChartValueAxis Visible="false" />
    <DxChartArgumentAxis Visible="false" />
</DxChart>

You can also hide axis ticks. Use the following properties:

See Also

DxChartAxisBase<T> Class

DxChartAxisBase<T> Members

DevExpress.Blazor Namespace