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.
The table below lists strip customization options.
Property | Description |
---|---|
Specifies the text for the strip axis label. | |
Gets or sets the strip color. | |
Specifies the strip start value along an axis. | |
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" Grid.Row="1">
<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:Strip>
</Charts:AxisX.Strips>
</Charts:AxisX>
</Charts:CartesianChart.AxisX>
<Charts:CartesianChart.AxisY>
<Charts:AxisY x:Name="axisY" ShowLine="True">
<Charts:AxisY.Title>
<Charts:AxisTitle Content="Population mid-year in millions"/>
</Charts:AxisY.Title>
</Charts:AxisY>
</Charts:CartesianChart.AxisY>
<Charts:CartesianChart.Series>
<Charts:Series x:Name="seriesErope" DisplayName="Europe">
<Charts:Series.Data>
<Charts:DataPointCollection>
<Charts:DataPoint Argument="1950" Value="546"/>
<!--...-->
<Charts:DataPoint Argument="2020" Value="721"/>
</Charts:DataPointCollection>
</Charts:Series.Data>
</Charts:Series>
<!--...-->
</Charts:CartesianChart.Series>
</Charts:CartesianChart>