We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e822c5 commit d90e5a1Copy full SHA for d90e5a1
1 file changed
tsplot/plot.go
@@ -2,8 +2,10 @@ package tsplot
2
3
import (
4
"errors"
5
+
6
"gonum.org/v1/plot"
7
"gonum.org/v1/plot/plotter"
8
+ "gonum.org/v1/plot/vg"
9
monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3"
10
)
11
@@ -45,6 +47,9 @@ func (ts TimeSeries) Plot(opts ...PlotOption) (*plot.Plot, error) {
45
47
return nil, err
46
48
}
49
50
+ // width of the line
51
+ line.Width = vg.Points(2)
52
53
// color the line
54
line.Color = lineColors[limit]
55
0 commit comments