Back to Devexpress

DxChartConstantLine.DashStyle Property

blazor-devexpress-dot-blazor-dot-dxchartconstantline.md

latest2.0 KB
Original Source

DxChartConstantLine.DashStyle Property

Specifies the dash style of the constant line.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public ChartDashStyle DashStyle { get; set; }

Property Value

TypeDescription
ChartDashStyle

A ChartDashStyle enumeration value.

|

Available values:

NameDescription
Solid

A continuous solid line.

| | Dash |

A dashed line.

| | Dot |

A dotted line.

| | LongDash |

A line that displays long dashes.

| | DashDot |

A line that repeats the dash-dot pattern.

| | DashDotDot |

A line that repeats the dash-dot-dot pattern.

|

Remarks

Use the DashStyle property to specify the dash style of the constant line.

The following example applies the dash-dot-dot pattern:

razor
<DxChart Data="@SalesData">
    <DxChartLineSeries Name="Total Sales"
                       ArgumentField="@((SaleInfo s) => s.City)"
                       ValueField="@((SaleInfo s) => s.Amount)"
                       SummaryMethod="Enumerable.Sum">
    </DxChartLineSeries>
    <DxChartValueAxis>
        <DxChartConstantLine Value="120000"
                             DashStyle="ChartDashStyle.DashDotDot">
            <DxChartConstantLineLabel Text="Planned Amount"
                                      HorizontalAlignment="HorizontalAlignment.Right" />
        </DxChartConstantLine>
    </DxChartValueAxis>
</DxChart>

See Also

DxChartConstantLine Class

DxChartConstantLine Members

DevExpress.Blazor Namespace