Remove zero check for factor
MODIFY
WalletWasabi.Fluent/Controls/LineChart.cs
WalletWasabi.Fluent/Controls/LineChart.cs
@@ -90,7 +90,7 @@ namespace WalletWasabi.Fluent.Controls
var areaWidth = Bounds.Width - AreaMargin.Left - AreaMargin.Right;
var value = Clamp(x - AreaMargin.Left, 0, areaWidth);
var factor = value / areaWidth;
- var index = factor == 0 ? 0 : (int) ((xAxisValues.Count - 1) * factor);
+ var index = (int) ((xAxisValues.Count - 1) * factor);
var currentValue = xAxisValues[index];
// Console.WriteLine($"value {value} factor {factor} index {index} currentValue {currentValue}");
XAxisCurrentValue = currentValue;

Remove zero check for factor