Skip to content

Commit f49bdc1

Browse files
Merge pull request #2 from SyncfusionExamples/upload-sample
Include Code Updates to the Sample Application
2 parents c6ab9a9 + 5b5dbcb commit f49bdc1

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Here’s a quick preview of the output of our benchmarking application:
2222

2323
If you are facing a "Path too long" exception when building this example project, close Visual Studio and rename the repository to a shorter name before building the project.
2424

25-
For a detailed step-by-step guide with relevant code snippets, refer to the blog post [Benchmarking WPF Fast Charts: Unveiling High Performance with 1 Million Data Points]().
25+
For a detailed step-by-step guide with relevant code snippets, refer to the blog post [Benchmarking WPF Fast Charts: Unveiling High Performance with 1 Million Data Points](https://www.syncfusion.com/blogs/post/wpf-chart-performance-benchmarking).
2626

2727

2828

SfChartBenchmark/MainWindow.xaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,11 @@
232232
<chart:SfLineSparkline Grid.Column="1"
233233
ItemsSource="{Binding UIRespHistory}"
234234
Interior="#FF8922" StrokeThickness="2"
235-
Height="44" HorizontalAlignment="Stretch"/>
235+
Height="44" HorizontalAlignment="Stretch">
236+
<chart:SfLineSparkline.LayoutTransform>
237+
<ScaleTransform ScaleY="-1" />
238+
</chart:SfLineSparkline.LayoutTransform>
239+
</chart:SfLineSparkline>
236240
</Grid>
237241
</Border>
238242
</StackPanel>

SfChartBenchmark/ViewModel/BenchmarkViewModel.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ public string Status
2828
public string SelectedSeriesType
2929
{
3030
get => _selectedSeriesType;
31-
set { _selectedSeriesType = value; OnPropertyChanged(); }
31+
set
32+
{
33+
_selectedSeriesType = value; OnPropertyChanged();
34+
35+
if (_selectedSeriesType == "FastLineSeries")
36+
EnableAA = false;
37+
}
3238
}
3339

3440
private bool _enableAA;

0 commit comments

Comments
 (0)