Back to Devexpress

DxChartConstantLineLabel.Visible Property

blazor-devexpress-dot-blazor-dot-dxchartconstantlinelabel-b10a45c5.md

latest1.6 KB
Original Source

DxChartConstantLineLabel.Visible Property

Specifies whether the constant line label is visible.

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 the label; otherwise, false.

|

Remarks

The following example hides the constant line label:

razor
<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

DxChartConstantLineLabel Members

DevExpress.Blazor Namespace