FastGraphWPF 1.0.2
See the version list below for details.
dotnet add package FastGraphWPF --version 1.0.2
NuGet\Install-Package FastGraphWPF -Version 1.0.2
<PackageReference Include="FastGraphWPF" Version="1.0.2" />
<PackageVersion Include="FastGraphWPF" Version="1.0.2" />
<PackageReference Include="FastGraphWPF" />
paket add FastGraphWPF --version 1.0.2
#r "nuget: FastGraphWPF, 1.0.2"
#:package FastGraphWPF@1.0.2
#addin nuget:?package=FastGraphWPF&version=1.0.2
#tool nuget:?package=FastGraphWPF&version=1.0.2
using CommunityToolkit.Mvvm.ComponentModel; using FastGraphLibraryWPF; using FastGraphLibraryWPF.Interface; using System.Collections.ObjectModel; using System.Timers;
namespace Example.ViewModels { public partial class FastGraphVM : ObservableObject { private readonly System.Timers.Timer _pollTimer = new System.Timers.Timer(1000); private double _time = 0; private readonly Random _random = new Random();
[ObservableProperty]
public ObservableCollection<IDataSeries> series = new ObservableCollection<IDataSeries>();
[ObservableProperty]
public string unitTime = "s";
[ObservableProperty]
public string unitValue = "";
public FastGraphVM()
{
Series.Add(new FastGraphLibraryWPF.Models.DataSeries("1", System.Windows.Media.Colors.Red, 1.0));
Series.Add(new FastGraphLibraryWPF.Models.DataSeries("2", System.Windows.Media.Colors.Blue, 1.0));
Series.Add(new FastGraphLibraryWPF.Models.DataSeries("3", System.Windows.Media.Colors.Green, 1.0));
_pollTimer.Elapsed += Timer_Tick;
_pollTimer.Start();
}
private void Timer_Tick(object sender, ElapsedEventArgs e)
{
System.Windows.Application.Current.Dispatcher.Invoke(() =>
{
AddNewPoint();
});
}
private void AddNewPoint()
{
_time += 0.5;
double y = Math.Sin(_time) + _random.NextDouble() * 0.1;
Series[0].AddPoint(_time, y);
Series[1].AddPoint(_time, y + 1);
Series[2].AddPoint(_time, y + 0.5);
}
}
}
<Window x:Class="Example.Views.Windows.FastGraph" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:Example.Views.Windows" xmlns:fg="clr-namespace:FastGraphLibraryWPF;assembly=FastGraphLibraryWPF" mc:Ignorable="d" Title="FastGraph" Height="450" Width="800"> <Grid> <fg:FastGraph x:Name="Graph" Series="{Binding Series}"/> </Grid> </Window>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net9.0-windows7.0 is compatible. net10.0-windows was computed. |
-
net8.0-windows7.0
- No dependencies.
-
net9.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.