Back to Devexpress

DxChartPaneBorder.Left Property

blazor-devexpress-dot-blazor-dot-dxchartpaneborder-d5a5145a.md

latest2.6 KB
Original Source

DxChartPaneBorder.Left Property

Specifies whether the pane’s left border is visible.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

true to display the left border; otherwise, false.

|

Remarks

To display borders in the DxChartPane component, enable the Visible property. You can then change the visibility of Left, Top, Right, and Bottom borders individually.

The following example shows the pane’s top, bottom, and left borders, and hides the right border:

razor
<DxChart Data="@SalesData"
         Height="500px">
    <DxChartTitle Text="Sales amount" />
    <DxChartLegend Position="RelativePosition.Outside"
                   VerticalAlignment="VerticalEdge.Bottom" />
    <DxChartPane Name="Pane1"
                 Height="60%">
        <DxChartPaneBorder Visible="true"
                           Top="true"
                           Right="false"
                           Bottom="true"
                           Left="true"
                           DashStyle="ChartDashStyle.LongDash"
                           Width="2"/>
    </DxChartPane>
    <DxChartBarSeries Name="2017"
                      Filter="@((SaleInfo s) => s.Date.Year == 2017)"
                      SummaryMethod="Enumerable.Sum"
                      Pane="Pane1"
                      ArgumentField="@(s => s.City)"
                      ValueField="@(s => s.Amount)" />
    <DxChartValueAxis Visible="false" />
    <DxChartArgumentAxis Visible="false" />
</DxChart>

@code {
    IEnumerable<SaleInfo> SalesData;

    protected override async Task OnInitializedAsync() {
        SalesData = await Sales.GetSalesAsync();
    }
}

See Also

DxChartPaneBorder Class

DxChartPaneBorder Members

DevExpress.Blazor Namespace