Skip to content

Commit 172ee2f

Browse files
authored
Update README.md
1 parent 5c4d471 commit 172ee2f

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

README.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
178178
}
179179
}
180180
```
181-
182-
**Step 5:** This XAML code for creates a grid layout with a chart and controls for adjusting a target line. The [SfChart](https://help.syncfusion.com/wpf/charts/getting-started) displays revenue data with a horizontal annotation line, adjustable using a TextBox and Slider in the adjacent StackPanel.
181+
182+
**Step 5:** This XAML code demonstrates a [SfChart](https://help.syncfusion.com/wpf/charts/getting-started) with dynamic updates to a horizontal target line annotation, bound to a ViewModel property. The chart includes X and Y axes, a column series, and customizable annotation styling.
183183

184184
**XAML**
185185

@@ -226,18 +226,9 @@ private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
226226
</chart:ColumnSeries>
227227
228228
</chart:SfChart>
229-
230-
<StackPanel Orientation="Vertical" Margin="10" Grid.Column="1">
231-
<TextBlock Text="Adjust Target Line" FontSize="16" FontWeight="Bold" TextAlignment="Center" HorizontalAlignment="Center" Margin="0,0,0,20"/>
232-
<TextBox Text="{Binding Y1}" HorizontalAlignment="Stretch" VerticalAlignment="Center" TextChanged="TextBox_TextChanged" Margin="0,0,0,20" Padding="10"/>
233-
<Slider Minimum="{Binding Minimum, Source={x:Reference Y_Axis}}"
234-
Maximum="{Binding Maximum, Source={x:Reference Y_Axis}}"
235-
Value="{Binding Y1}" HorizontalAlignment="Stretch"/>
236-
</StackPanel>
237229
</Grid>
238230
```
239231

240-
241232
**Output:**
242233

243234
![DynamicTargetLine1](https://github.com/user-attachments/assets/aa0e643e-f62e-4d95-a596-7cd981484d47)

0 commit comments

Comments
 (0)