Skip to main content
All docs
V23.2

DxChartPaneBorder.DashStyle Property

Specifies the line style for pane borders.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(ChartDashStyle.Solid)]
[Parameter]
public ChartDashStyle DashStyle { get; set; }

Property Value

Type Default Description
ChartDashStyle Solid

A ChartDashStyle enumeration value.

Available values:

Name Description
Solid

A continuous solid line.

Dash

A dashed line.

Dot

A dotted line.

LongDash

A line that consists of long dashes.

DashDot

A line that consists of a repeating pattern of dash-dot.

DashDotDot

A line that consists of a repeating pattern of dash-dot-dot.

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 code sample below shows pane borders and changes their dash style:

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

DxChartPane - Border dashstyle

See Also