syncfusion/wpf-ui-components-skills / skills/syncfusion-wpf-charts
syncfusion-wpf-charts
VerifiedComprehensive guide for implementing Syncfusion WPF Charts (SfChart) in Windows Presentation Foundation applications. Use this when working with WPF charts, data visualization, or interactive charting features. This skill covers chart series types, axes configuration, data binding, appearance customization, financial charts, technical indicators, and interactive features like zooming and tooltips for WPF applications.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 16.6 KB |
| references/adornments.md | markdown | 8.2 KB |
| references/annotations.md | markdown | 7.1 KB |
| references/appearance-styling.md | markdown | 9.2 KB |
| references/axes-configuration.md | markdown | 7.8 KB |
| references/data-binding.md | markdown | 8.1 KB |
| references/getting-started.md | markdown | 5.8 KB |
| references/interactive-features.md | markdown | 7.6 KB |
| references/legends.md | markdown | 4.9 KB |
| references/performance-optimization.md | markdown | 7.4 KB |
| references/printing-exporting.md | markdown | 7.2 KB |
| references/series-types.md | markdown | 8.4 KB |
| references/striplines.md | markdown | 7.8 KB |
| references/technical-indicators.md | markdown | 9.7 KB |
references/striplines.md
View on GitHub# Striplines
Striplines are vertical or horizontal bands that highlight specific regions on chart axes.
## Basic Stripline
Add a stripline to highlight a specific value range:
```xml
<syncfusion:NumericalAxis>
<syncfusion:NumericalAxis.StripLines>
<syncfusion:ChartStripLine Start="40000"
Width="20000"
Background="LightBlue"
Opacity="0.5"/>
</syncfusion:NumericalAxis.StripLines>
</syncfusion:NumericalAxis>
```
## Stripline Properties
### Start and Width
```xml
<syncfusion:ChartStripLine Start="50000"
Width="10000"
Background="LightGreen"/>
```
- **Start:** Beginning value on the axis
- **Width:** Width in axis units
### Color and Opacity
```xml
<syncfusion:ChartStripLine Start="0"
Width="30000"
Background="Red"
Opacity="0.3"/>
```
## Stripline with Border
```xml
<syncfusion:ChartStripLine Start="60000"
Width="20000"
Background="Yellow"
BorderBrush="Orange"
BorderThickness="2"/>
```
## Stripline Label
Add labels to striplines:
```xml
<syncfusion:ChartStripLine Start="40000"
Width="20000"
Background="LightBlue"
Label="Target Range"
LabelAngle ="0">
</syncfusion:ChartStripLine>
```
### Label Positioning
```xml
<syncfusion:ChartStripLine Label="Average"
LabelHorizontalAlignment="Center"
LabelVerticalAlignment="Top"/>
```
## Multiple Striplines
Add several striplines to one axis:
```xml
<syncfusion:NumericalAxis>
<syncfusion:NumericalAxis.StripLines>
<!-- Below target -->
<syncfusion:ChartStripLine Start="0"
Width="40000"
Background="LightCoral"
Opacity="0.3"
Label="Below Target"/>
<!-- Target zone -->
<syncfusion:ChartStripLine Start="40000"
Width="20000"
Background="LightGreen"
Opacity="0.3"
Label="Target Zone"/>
<!-- Above target -->
<syncfusion:ChartStripLine Start="60000"
Width="40000"
Background="LightBlue"
Opacity="0.3"
Label="Exceeded"/>
</syncfusion:NumericalAxis.StripLines>
</syncfusion:NumericalAxis>
```
## Recurring Striplines
Create repeating striplines:
```xml
<syncfusion:ChartStripLine Start="0"
Width="10000"
RepeatEvery="20000"
RepeatUntil="100000"
Background="LightGray"
Opacity="0.2"/>
```
This creates striplines at 0-10k, 20k-30k, 40k-50k, etc.
## Stripline on DateTime Axis
```xml
<syncfusion:DateTimeAxis>
<syncfusion:DateTimeAxis.StripLines>
<syncfusion:ChartStripLine x:Name="stripLine"
Width="7"
Background="Yellow"
Opacity="0.3"
Label="Holiday Week"/>
</syncfusion:DateTimeAxis.StripLines>
</syncfusion:DateTimeAxis>
```
```C#
stripLine.Start = new DateTime(2009, 1, 3).ToOADate();
```
## Stripline on Category Axis
```xml
<syncfusion:CategoryAxis>
<syncfusion:CategoryAxis.StripLines>
<syncfusion:ChartStripLine Start="2"
Width="2"
Background="LightGreen"
Opacity="0.4"
Label="Q2"/>
</syncfusion:CategoryAxis.StripLines>
</syncfusion:CategoryAxis>
```
## Stripline Segmentation
Segment striplines for stacked series:
```xml
<syncfusion:ChartStripLine Start="10"
Width="5"
IsSegmented="True"
SegmentStartValue="100"
SegmentEndValue="200"
Background="LightBlue"/>
```
## Complete Example
```xml
<syncfusion:SfChart>
<syncfusion:SfChart.PrimaryAxis>
<syncfusion:CategoryAxis/>
</syncfusion:SfChart.PrimaryAxis>
<syncfusion:SfChart.SecondaryAxis>
<syncfusion:NumericalAxis>
<syncfusion:NumericalAxis.StripLines>
<!-- Critical zone -->
<syncfusion:ChartStripLine Start="0"
Width="30000"
Background="Red"
Opacity="0.2"
Label="Critical"
LabelVerticalAlignment="Top">
</syncfusion:ChartStripLine>
<!-- Warning zone -->
<syncfusion:ChartStripLine Start="30000"
Width="20000"
Background="Yellow"
Opacity="0.2"
Label="Warning"/>
<!-- Safe zone -->
<syncfusion:ChartStripLine Start="50000"
Width="50000"
Background="Green"
Opacity="0.2"
Label="Safe"/>
</syncfusion:NumericalAxis.StripLines>
</syncfusion:NumericalAxis>
</syncfusion:SfChart.SecondaryAxis>
<!-- Series -->
<syncfusion:ColumnSeries ItemsSource="{Binding Data}"
XBindingPath="Month"
YBindingPath="Value"/>
</syncfusion:SfChart>
```
## Common Stripline Patterns
### Pattern 1: Average Line
```xml
<syncfusion:ChartStripLine Start="50000"
Width="0"
BorderBrush="Red"
BorderThickness="2"
Label="Average"
LabelHorizontalAlignment="Left"/>
```
### Pattern 2: Target Zone
```xml
<syncfusion:ChartStripLine Start="45000"
Width="10000"
Background="LightGreen"
Opacity="0.3"
BorderBrush="Green"
BorderThickness="1"
Label="Target: 45K - 55K"/>
```
### Pattern 3: Alternating Bands
```xml
<syncfusion:ChartStripLine Start="0"
Width="20000"
RepeatEvery="40000"
RepeatUntil="100000"
Background="LightGray"
Opacity="0.1"/>
```
## Key Properties
| Property | Description |
|----------|-------------|
| `Start` | Starting value on axis |
| `Width` | Width in axis units |
| `WidthType` | Unit type for DateTime axis |
| `Background` | Fill color |
| `Opacity` | Transparency (0-1) |
| `BorderBrush` | Border color |
| `BorderThickness` | Border width |
| `Label` | Label text |
| `LabelAngle` | Label rotation |
| `LabelHorizontalAlignment` | Label horizontal position |
| `LabelVerticalAlignment` | Label vertical position |
| `RepeatEvery` | Repeat interval |
| `RepeatUntil` | Repeat until value |
| `IsSegmented` | Enable segmentation |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |