Back to Devexpress

DxChartAxisStrip.StartValue Property

blazor-devexpress-dot-blazor-dot-dxchartaxisstrip.md

latest2.0 KB
Original Source

DxChartAxisStrip.StartValue Property

Specifies the strip’s start value.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public object StartValue { get; set; }

Property Value

TypeDescription
Object

The start value.

|

Remarks

Specify StartValue and EndValue properties to define the strip range. Use both properties to highlight an area between two values. Define only one property to highlight the area above or below a certain value.

razor
<DxChart Data="@DataSource">
    <DxChartTitle Text="Temperature (high) in September, °F" />
    <DxChartLegend Visible="false" />
    <DxChartSplineSeries ArgumentField="@((TemperatureData s) => s.Date)"
                         ValueField="@((TemperatureData s) => s.Temperature)"
                         Color="@SeriesColor">
        <DxChartSeriesLabel FormatPattern="{value:#}°F" />
    </DxChartSplineSeries>
    <DxChartValueAxis>
        <DxChartAxisStrip StartValue="@HighAverage"
                          Color="rgba(255, 155, 85, 0.15)">
            <DxChartAxisStripLabel Text="Above average high">
                <DxChartFont Color="@HighAverageColor" Weight="500" Size="14" />
            </DxChartAxisStripLabel>
        </DxChartAxisStrip>
    </DxChartValueAxis>
</DxChart>

@code {
    // ...
    double HighAverage = 60.8;
    string HighAverageColor = "#ff9b52";
}

See Also

DxChartAxisStrip Class

DxChartAxisStrip Members

DevExpress.Blazor Namespace