mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
fix: fixed LineChart draw with an offset when a label is present (#3071)
This commit is contained in:
@@ -233,7 +233,7 @@ public class LineChartView: NSView {
|
||||
}
|
||||
|
||||
let point = CGPoint(
|
||||
x: CGFloat(i) * xRatio,
|
||||
x: (CGFloat(i) * xRatio) + dirtyRect.origin.x,
|
||||
y: y
|
||||
)
|
||||
line.append(point)
|
||||
|
||||
Reference in New Issue
Block a user