From b53cdbab5a16e15993314d500a8a4191e5e4e091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20D=C3=A9fago?= Date: Mon, 12 Aug 2024 10:54:58 +0200 Subject: [PATCH] Fix incorrect y-axis data volume scale (#969) --- Demo/Sources/Metrics/DataVolumeChart.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/Sources/Metrics/DataVolumeChart.swift b/Demo/Sources/Metrics/DataVolumeChart.swift index 6d83069eb..d68704bbd 100644 --- a/Demo/Sources/Metrics/DataVolumeChart.swift +++ b/Demo/Sources/Metrics/DataVolumeChart.swift @@ -32,7 +32,7 @@ struct DataVolumeChart: View { Chart(Array(metrics.suffix(limit).enumerated()), id: \.offset) { metrics in BarMark( x: .value("Index", metrics.offset), - y: .value("Data volume (\(Self.megabytes)", Double(metrics.element.increment.numberOfBytesTransferred) / 1024 * 1024), + y: .value("Data volume (\(Self.megabytes)", Double(metrics.element.increment.numberOfBytesTransferred) / 1024 / 1024), width: .inset(1) ) .foregroundStyle(.cyan)