Skip to content

Commit

Permalink
Fix incorrect y-axis data volume scale (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
defagos authored Aug 12, 2024
1 parent 7c31e65 commit b53cdba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Demo/Sources/Metrics/DataVolumeChart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b53cdba

Please sign in to comment.