Skip to content

Commit d5f3718

Browse files
committed
feature: refactor guides
1 parent a7146a5 commit d5f3718

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

docs/assets/pdf/timeseries.pdf

-24 Bytes
Binary file not shown.

internal/providers/gofpdf/chart/timeseries.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package chart
22

33
import (
4-
"fmt"
54
"github.com/johnfercher/maroto/v2/pkg/consts/linestyle"
65
"github.com/johnfercher/maroto/v2/pkg/props"
76

@@ -62,7 +61,7 @@ func (s timeSeries) Add(timeSeriesList []entity.TimeSeries, cell *entity.Cell, m
6261
aY := timeSeries.Labels[i].Point.Y * stepY
6362
aY = cell.Height + margins.Top + cell.Y - aY
6463

65-
stringLabel := fmt.Sprintf("%s(%.2f)", timeSeries.Labels[i].Value, timeSeries.Labels[i].Point.Y)
64+
stringLabel := timeSeries.Labels[i].Value
6665
stringWidth := s.pdf.GetStringWidth(stringLabel)
6766

6867
fontFamily, fontType, fontSize := s.font.GetFont()

0 commit comments

Comments
 (0)