Skip to content

Commit 7b9fb29

Browse files
committed
fix starting point of score graph
1 parent d09d464 commit 7b9fb29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/scoreGraph.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func (g *scoreGraph) drawLowZone(cr *cairo.Context, layout graphLayout) {
339339
func (g *scoreGraph) drawDataPointsRectangular(cr *cairo.Context, layout graphLayout, datapoints []core.BandScore) {
340340
valueCount := len(datapoints)
341341

342-
cr.MoveTo(0, layout.zeroY)
342+
cr.MoveTo(layout.leftLegendWidth, layout.zeroY)
343343

344344
var valueScaling float64
345345
if g.pointsBinGoal > 0 {
@@ -385,7 +385,7 @@ func (g *scoreGraph) drawDataPointsRectangular(cr *cairo.Context, layout graphLa
385385
func (g *scoreGraph) drawDataPointsCurved(cr *cairo.Context, layout graphLayout, datapoints []core.BandScore) {
386386
valueCount := len(datapoints)
387387

388-
cr.MoveTo(0, layout.zeroY)
388+
cr.MoveTo(layout.leftLegendWidth, layout.zeroY)
389389

390390
var valueScaling float64
391391
if g.pointsBinGoal > 0 {

0 commit comments

Comments
 (0)