Skip to main content

Strips

A strip is a colored area that highlights a range of values on a corresponding axis. Strips show whether series points fall in or out of the range.

Strip

The table below lists strip customization options.

Property

Description

Strip.AxisLabelText

Specifies the text for the strip axis label.

Strip.Brush

Gets or sets the strip color.

Strip.StartValue

Specifies the strip start value along an axis.

Strip.EndValue

Specifies the strip end value along an axis.

The following example adds a strip to the chart and specifies the strip’s color:

 <Charts:CartesianChart x:Name="chart">
    <Charts:CartesianChart.AxisX>
        <Charts:AxisX x:Name="axisX" ShowLine="True" ShowMajorTickmarks="True">
            <Charts:AxisX.Strips>
                <Charts:Strip StartValue="1990" EndValue="2010" AxisLabelText="1990-2010" Brush="LightBlue"/>
            </Charts:AxisX.Strips>
        </Charts:AxisX>
    </Charts:CartesianChart.AxisX>
    <Charts:CartesianChart.AxisY>
        <Charts:AxisY x:Name="axisY" ShowLine="True" Title="Population mid-year in millions"/>
    </Charts:CartesianChart.AxisY>
    <!--...-->
</Charts:CartesianChart>