blazor-devexpress-dot-blazor-dot-dxchartconstantlinelabel-b10a45c5.md
Specifies whether the constant line label is visible.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(true)]
[Parameter]
public bool Visible { get; set; }
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to display the label; otherwise, false.
|
The following example hides the constant line label:
<DxChart Data="@SalesData">
<DxChartValueAxis>
<DxChartConstantLine Value="1000" >
<DxChartConstantLineLabel Visible="false"/>
</DxChartConstantLine>
</DxChartValueAxis>
<DxChartLineSeries Name="2017"
Filter="@((SaleInfo s) => s.Date.Year == 2017)"
ArgumentField="@(s => s.City)"
ValueField="@(s => s.Amount)"
SummaryMethod="Enumerable.Sum" />
<DxChartTitle Text="Sales Info" />
<DxChartLegend Position="RelativePosition.Outside" HorizontalAlignment="HorizontalAlignment.Right" />
</DxChart>
See Also
DxChartConstantLineLabel Class