remove linechart demo
DELETE
WalletWasabi.Fluent/ViewModels/LineChartDemo/SendLineChartViewModel.cs
-using System;
-using System.Collections.Generic;
-using WalletWasabi.Fluent.MathNet;
-
-namespace WalletWasabi.Fluent.ViewModels.LineChartDemo
-{
- public class SendLineChartViewModel
- {
- public double XAxisCurrentValue { get; set; } = 36;
-
- public double XAxisMinValue { get; set; } = 1;
-
- public double XAxisMaxValue { get; set; } = 1008;
-
- public List<string> XAxisLabels => new()
- {
- "1w",
- "3d",
- "1d",
- "12h",
- "6h",
- "3h",
- "1h",
- "30m",
- "20m",
- "fastest"
- };
-
- public List<double> XAxisValues => new()
- {
- 1008,
- 432,
- 144,
- 72,
- 36,
- 18,
- 6,
- 3,
- 2,
- 1,
- };
-
- public List<double> YAxisValues => new()
- {
- 4,
- 4,
- 7,
- 22,
- 57,
- 97,
- 102,
- 123,
- 123,
- 185
- };
-
- public void TestCubicSplineInterpolation()
- {
- double[] x = new double[13];
- double[] y = new double[13];
- Console.WriteLine($"X Y");
- for (int i = 0; i <= 12; i++)
- {
- x[i] = i * Math.PI / 12;
- y[i] = Math.Sin(x[i]);
- Console.WriteLine($"{x[i]} {y[i]}");
- }
- var spline = CubicSpline.InterpolateNaturalSorted(x, y);
- double testX = 1.5 * Math.PI / 12;
- double testY = spline.Interpolate(testX);
- Console.WriteLine($"Interpolated:");
- Console.WriteLine($"{testX} {testY}");
- }
- }
-}

DELETE
WalletWasabi.Fluent/ViewModels/LineChartDemo/XYLineChartViewModel.cs
-using System;
-using System.Collections.Generic;
-using WalletWasabi.Fluent.MathNet;
-
-namespace WalletWasabi.Fluent.ViewModels.LineChartDemo
-{
- public class XYLineChartViewModel
- {
- public List<double> XAxisValues => new()
- {
- 1008,
- 432,
- 144,
- 72,
- 36,
- 18,
- 6,
- 3,
- 2,
- 1,
- };
-
- public List<string> XAxisLabels => new()
- {
- "Jan",
- "Feb",
- "March",
- "April"
- };
-
- public List<double> YAxisValues => new()
- {
- 0.2,
- 0.81,
- 2.23,
- 2.12,
- 1.8,
- 1.33,
- 3.33,
- 4.44,
- 4.21,
- 4.01
- };
- }
-}

DELETE
WalletWasabi.Fluent/Views/LineChartDemo/SendLineChartView.axaml
-<UserControl xmlns="https://github.com/avaloniaui"
- 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:c="using:WalletWasabi.Fluent.Controls"
- xmlns:vm="using:WalletWasabi.Fluent.ViewModels.LineChartDemo"
- mc:Ignorable="d" d:DesignWidth="428" d:DesignHeight="371"
- x:Class="WalletWasabi.Fluent.Views.LineChartDemo.SendLineChartView">
- <UserControl.DataContext>
- <vm:SendLineChartViewModel />
- </UserControl.DataContext>
- <UserControl.Styles>
- <!-- Slider Fee -->
- <Style Selector="Slider.cursor">
- <Setter Property="RenderTransform">
- <RotateTransform Angle="-180" />
- </Setter>
- </Style>
- <Style Selector="Slider.cursor /template/ RepeatButton#PART_IncreaseButton">
- <Setter Property="Background" Value="{DynamicResource SliderTrackValueFill}" />
- </Style>
- <Style Selector="Slider:pressed.cursor /template/ RepeatButton#PART_IncreaseButton">
- <Setter Property="Background" Value="{DynamicResource SliderTrackValueFillPressed}" />
- </Style>
- <Style Selector="Slider:pointerover.cursor /template/ RepeatButton#PART_IncreaseButton">
- <Setter Property="Background" Value="{DynamicResource SliderTrackValueFillPointerOver}" />
- </Style>
- <Style Selector="Slider.cursor /template/ RepeatButton#PART_DecreaseButton">
- <Setter Property="Background" Value="{DynamicResource SliderTrackFill}" />
- </Style>
- <Style Selector="Slider:pressed.cursor /template/ RepeatButton#PART_DecreaseButton">
- <Setter Property="Background" Value="{DynamicResource SliderTrackFillPressed}" />
- </Style>
- <Style Selector="Slider:pointerover.cursor /template/ RepeatButton#PART_DecreaseButton">
- <Setter Property="Background" Value="{DynamicResource SliderTrackFillPointerOver}" />
- </Style>
- <Style Selector="Slider:horizontal.cursor">
- <Setter Property="Background" Value="{DynamicResource SliderTrackFill}" />
- </Style>
- <!-- LineChart Area -->
- <Style Selector="c|LineChart.area">
- <Setter Property="AreaMargin" Value="30,40,30,30" />
- <Setter Property="AreaStrokeThickness" Value="2" />
- <Setter Property="AreaStrokeLineCap" Value="Round" />
- <Setter Property="AreaMinViableWidth" Value="40" />
- <Setter Property="AreaMinViableHeight" Value="20" />
- <Setter Property="AreaFill">
- <LinearGradientBrush StartPoint="50%,0%" EndPoint="50%,100%" Opacity="0.2">
- <LinearGradientBrush.GradientStops>
- <GradientStop Offset="0.0" Color="#FF72BD81" />
- <GradientStop Offset="1.0" Color="#0072BD81" />
- </LinearGradientBrush.GradientStops>
- </LinearGradientBrush>
- </Setter>
- <Setter Property="AreaStroke">
- <LinearGradientBrush StartPoint="0%,50%" EndPoint="100%,50%">
- <LinearGradientBrush.GradientStops>
- <GradientStop Offset="0.0" Color="#72BD81" />
- <GradientStop Offset="1.0" Color="#72BD81" />
- </LinearGradientBrush.GradientStops>
- </LinearGradientBrush>
- </Setter>
- </Style>
- <!-- LineChart Cursor -->
- <Style Selector="c|LineChart.cursor">
- <Setter Property="CursorStroke" Value="{DynamicResource LineChartAreaGradientCursorColor}" />
- <Setter Property="CursorStrokeThickness" Value="2" />
- <!-- <Setter Property="CursorStrokeDashStyle" Value="{x:Static DashStyle.Dash}" /> -->
- <Setter Property="CursorStrokeLineCap" Value="Round" />
- </Style>
- <!-- LineChart XAxis -->
- <Style Selector="c|LineChart.xAxis">
- <Setter Property="XAxisOffset" Value="0,0" />
- <Setter Property="XAxisOpacity" Value="0.5" />
- <Setter Property="XAxisStroke" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="XAxisStrokeThickness" Value="0.7" />
- <Setter Property="XAxisArrowSize" Value="3.5" />
- <Setter Property="XAxisMinViableWidth" Value="0" />
- <Setter Property="XAxisMinViableHeight" Value="0" />
- </Style>
- <!-- LineChart XAxis Labels -->
- <Style Selector="c|LineChart.xAxisLabels">
- <Setter Property="XAxisLabelForeground" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="XAxisLabelOpacity" Value="0.5" />
- <Setter Property="XAxisLabelAngle" Value="0" />
- <Setter Property="XAxisLabelOffset" Value="0,20" />
- <Setter Property="XAxisLabelAlignment" Value="Center" />
- <Setter Property="XAxisLabelFontFamily" Value="Arial" />
- <Setter Property="XAxisLabelFontStyle" Value="Normal" />
- <Setter Property="XAxisLabelFontWeight" Value="Normal" />
- <Setter Property="XAxisLabelFontSize" Value="10" />
- </Style>
- <!-- LineChart YAxis -->
- <Style Selector="c|LineChart.yAxis">
- <Setter Property="YAxisOffset" Value="-10,-115" />
- <Setter Property="YAxisOpacity" Value="0.5" />
- <Setter Property="YAxisStroke" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="YAxisStrokeThickness" Value="0.7" />
- <Setter Property="YAxisArrowSize" Value="3.5" />
- <Setter Property="YAxisMinViableWidth" Value="0" />
- <Setter Property="YAxisMinViableHeight" Value="140" />
- </Style>
- <!-- LineChart YAxis Labels -->
- <Style Selector="c|LineChart.yAxisLabels">
- <Setter Property="YAxisLabelForeground" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="YAxisLabelOpacity" Value="0.5" />
- <Setter Property="YAxisLabelAngle" Value="0" />
- <Setter Property="YAxisLabelOffset" Value="0,5" />
- <Setter Property="YAxisLabelAlignment" Value="Center" />
- <Setter Property="YAxisLabelFontFamily" Value="Arial" />
- <Setter Property="YAxisLabelFontStyle" Value="Normal" />
- <Setter Property="YAxisLabelFontWeight" Value="Normal" />
- <Setter Property="YAxisLabelFontSize" Value="10" />
- </Style>
- <!-- LineChart YAxis Title -->
- <Style Selector="c|LineChart.yAxisTitle">
- <Setter Property="YAxisTitleForeground" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="YAxisTitleOpacity" Value="0.5" />
- <Setter Property="YAxisTitleAngle" Value="-90" />
- <Setter Property="YAxisTitleOffset" Value="-55,-75" />
- <Setter Property="YAxisTitleSize" Value="90,20" />
- <Setter Property="YAxisTitleAlignment" Value="Center" />
- <Setter Property="YAxisTitleFontFamily" Value="Arial" />
- <Setter Property="YAxisTitleFontStyle" Value="Normal" />
- <Setter Property="YAxisTitleFontWeight" Value="Normal" />
- <Setter Property="YAxisTitleFontSize" Value="12" />
- </Style>
- <!-- LineChart Border -->
- <Style Selector="c|LineChart.border">
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="BorderRadiusX" Value="0" />
- <Setter Property="BorderRadiusY" Value="0" />
- </Style>
- </UserControl.Styles>
- <DockPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
- <Label Content="{Binding #GradientLineChart.XAxisCurrentValue, StringFormat={}_Priority: {0}}"
- DockPanel.Dock="Top"
- Margin="20,0,20,0" />
- <Slider x:Name="CursorValue2"
- DockPanel.Dock="Bottom"
- Classes="cursor"
- Minimum="{Binding XAxisMinValue}"
- Maximum="{Binding XAxisMaxValue}"
- Value="{Binding #GradientLineChart.XAxisCurrentValue}"
- Margin="20,0,20,0" />
- <c:LineChart x:Name="GradientLineChart"
- Classes="area cursor border xAxisLabels yAxis yAxisTitle"
- XAxisLabels="{Binding XAxisLabels}"
- XAxisValues="{Binding XAxisValues}"
- XAxisCurrentValue="{Binding XAxisCurrentValue}"
- YAxisValues="{Binding YAxisValues}"
- YAxisLogarithmicScale="False"
- YAxisTitle="More Expensive" />
- </DockPanel>
-</UserControl>
\ No newline at end of file

DELETE
WalletWasabi.Fluent/Views/LineChartDemo/SendLineChartView.axaml.cs
-using Avalonia.Controls;
-using Avalonia.Markup.Xaml;
-
-namespace WalletWasabi.Fluent.Views.LineChartDemo
-{
- public class SendLineChartView : UserControl
- {
- public SendLineChartView()
- {
- InitializeComponent();
- }
-
- private void InitializeComponent()
- {
- AvaloniaXamlLoader.Load(this);
- }
- }
-}

DELETE
WalletWasabi.Fluent/Views/LineChartDemo/XYLineChartView.axaml
-<UserControl xmlns="https://github.com/avaloniaui"
- 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:c="using:WalletWasabi.Fluent.Controls"
- xmlns:vm="using:WalletWasabi.Fluent.ViewModels.LineChartDemo"
- mc:Ignorable="d" d:DesignWidth="428" d:DesignHeight="371"
- x:Class="WalletWasabi.Fluent.Views.LineChartDemo.XYLineChartView">
- <UserControl.DataContext>
- <vm:XYLineChartViewModel/>
- </UserControl.DataContext>
- <UserControl.Styles>
- <!-- LineChart Area -->
- <Style Selector="c|LineChart.area">
- <Setter Property="AreaMargin" Value="50,40,30,40"/>
- <Setter Property="AreaStrokeThickness" Value="2"/>
- <Setter Property="AreaStrokeLineCap" Value="Round"/>
- <Setter Property="AreaMinViableWidth" Value="40"/>
- <Setter Property="AreaMinViableHeight" Value="20"/>
- <Setter Property="AreaFill">
- <SolidColorBrush Color="#72BD81" Opacity="0.2"/>
- </Setter>
- <Setter Property="AreaStroke">
- <SolidColorBrush Color="#72BD81" Opacity="1.0"/>
- </Setter>
- </Style>
- <!-- LineChart Border -->
- <Style Selector="c|LineChart.border">
- <Setter Property="BorderBrush" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="BorderRadiusX" Value="10" />
- <Setter Property="BorderRadiusY" Value="10" />
- </Style>
- <!-- LineChart XAxis -->
- <Style Selector="c|LineChart.xAxis">
- <Setter Property="XAxisOffset" Value="0,0" />
- <Setter Property="XAxisOpacity" Value="1.0" />
- <Setter Property="XAxisStroke" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="XAxisStrokeThickness" Value="0.7" />
- <Setter Property="XAxisArrowSize" Value="3.5" />
- <Setter Property="XAxisMinViableWidth" Value="0"/>
- <Setter Property="XAxisMinViableHeight" Value="0"/>
- </Style>
- <!-- LineChart XAxis Labels -->
- <Style Selector="c|LineChart.xAxisLabels">
- <Setter Property="XAxisLabelForeground" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="XAxisLabelAngle" Value="0" />
- <Setter Property="XAxisLabelOffset" Value="0,10" />
- <Setter Property="XAxisLabelAlignment" Value="Center" />
- <Setter Property="XAxisLabelFontSize" Value="10" />
- </Style>
- <!-- LineChart YAxis -->
- <Style Selector="c|LineChart.yAxis">
- <Setter Property="YAxisOffset" Value="0,0" />
- <Setter Property="YAxisOpacity" Value="1.0" />
- <Setter Property="YAxisStroke" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="YAxisStrokeThickness" Value="0.7" />
- <Setter Property="YAxisArrowSize" Value="3.5" />
- <Setter Property="YAxisMinViableWidth" Value="0"/>
- <Setter Property="YAxisMinViableHeight" Value="0"/>
- </Style>
- <!-- LineChart YAxis Labels -->
- <Style Selector="c|LineChart.yAxisLabels">
- <Setter Property="YAxisLabelForeground" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="YAxisLabelAngle" Value="0" />
- <Setter Property="YAxisLabelOffset" Value="-10,0" />
- <Setter Property="YAxisLabelAlignment" Value="Right" />
- <Setter Property="YAxisLabelFontSize" Value="10" />
- </Style>
- </UserControl.Styles>
- <DockPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="20">
- <c:LineChart x:Name="GradientLineChart"
- Classes="area border xAxis xAxisLabels yAxis yAxisLabels"
- XAxisValues="{Binding XAxisValues}"
- YAxisValues="{Binding YAxisValues}">
- </c:LineChart>
- </DockPanel>
-</UserControl>

DELETE
WalletWasabi.Fluent/Views/LineChartDemo/XYLineChartView.axaml.cs
-using Avalonia.Controls;
-using Avalonia.Markup.Xaml;
-
-namespace WalletWasabi.Fluent.Views.LineChartDemo
-{
- public class XYLineChartView : UserControl
- {
- public XYLineChartView()
- {
- InitializeComponent();
- }
-
- private void InitializeComponent()
- {
- AvaloniaXamlLoader.Load(this);
- }
- }
-}

remove linechart demo