Skip to content

Commit 34a0a7f

Browse files
committed
update README.md and target framework
1 parent 6bcabf0 commit 34a0a7f

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# How-to-perform-lazy-loading-in-WPF-Chart-SfChart-
1+
# How to perform lazy loading in WPF Chart SfChart
22
This sample demonstrates how to perform lazy loading in WPF Chart(SfChart).
33

44
Here's a step-by-step guide on how to perform lazy loading in a WPF Chart using the Syncfusion SfChart
55

66
## Step 1:
77
Initialize the SfChart with Primary and Secondary axis.
8+
89
## Step 2:
910
Hook the PanChanged event in SfChart and set the required ZoomFactor on the primary axis.
1011

@@ -35,10 +36,6 @@ XAML
3536
chart.SecondaryAxis = yAxis;
3637
this.Content = chart;
3738

38-
39-
40-
41-
4239
## Step 3 :
4340
Initialize the ChartZoomPanBehavior and enable panning by setting EnablePanning to “True”.
4441

@@ -57,7 +54,7 @@ Initialize the ChartZoomPanBehavior and enable panning by setting EnablePanning
5754
## Step 4:
5855
Implement the chart_PanChanged method to calculate the end range of the chart. As horizontal scrolling or panning reaches the end of the chart, additional data points are added, then adjust the position of the xAxis range using ZoomPosition.
5956

60-
### C#
57+
### C#
6158

6259
**// startValue = You can set the last value of the data source in viewModel.**
6360
private void chart_PanChanged(object sender, PanChangedEventArgs e)
@@ -82,5 +79,7 @@ Implement the chart_PanChanged method to calculate the end range of the chart. A
8279
![LazyLoading_Output](https://github.com/SyncfusionExamples/How-to-perform-lazy-loading-in-WPF-Chart-SfChart/assets/113961867/8adee59a-dee8-43dc-8609-c4d529e80873)
8380

8481
## Troubleshooting
85-
82+
### Path too long exception
8683
If you are facing a path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.
84+
85+
For more details, refer to the KB on [how to perform lazy loading in WPF Chart SfChart](https://support.syncfusion.com/kb/article/14567/how-to-perform-lazy-loading-in-wpf-chart-sfchart).

SimpleSample/MainWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
YBindingPath="YValue"
3030
Stroke="#ff933d"
3131
Interior="#FFF1D8"
32-
EnableAnimation="True" Margin="-183,-4,182,4"
33-
></syncfusion:SplineAreaSeries>
32+
EnableAnimation="True">
33+
</syncfusion:SplineAreaSeries>
3434
<syncfusion:SfChart.Behaviors>
3535
<syncfusion:ChartZoomPanBehavior EnablePanning="True" EnableDirectionalZooming="False" EnableMouseWheelZooming="False" EnablePinchZooming="False" EnableSelectionZooming="False"></syncfusion:ChartZoomPanBehavior>
3636
</syncfusion:SfChart.Behaviors>

SimpleSample/SimpleSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>net6.0-windows</TargetFramework>
5+
<TargetFramework>net8.0-windows</TargetFramework>
66
<Nullable>enable</Nullable>
77
<UseWPF>true</UseWPF>
88
</PropertyGroup>

0 commit comments

Comments
 (0)