summaryrefslogtreecommitdiff
path: root/graph.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-04-07 12:02:54 +0100
committerNick White <git@njw.name>2020-04-07 12:02:54 +0100
commitaf63449be98f1964b67981b2aedda0d2ea70fe6d (patch)
tree92e415fceb313113107fbe530b584b231940c901 /graph.go
parent22200755d471e77d20f490ffe01ede884b5acfcb (diff)
gofmt
Diffstat (limited to 'graph.go')
-rw-r--r--graph.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/graph.go b/graph.go
index 4ca44a7..8d6c857 100644
--- a/graph.go
+++ b/graph.go
@@ -107,14 +107,14 @@ func GraphOpts(confs map[string]*Conf, bookname string, xaxis string, guidelines
final := graphconf[len(graphconf)-1]
ticks[len(ticks)-1] = chart.Tick{final.Pgnum, fmt.Sprintf("%.0f", final.Pgnum)}
for i := 0; i <= yticknum; i++ {
- n := float64(i * 100) / yticknum
+ n := float64(i*100) / yticknum
yticks = append(yticks, chart.Tick{n, fmt.Sprintf("%.1f", n)})
}
mainSeries := chart.ContinuousSeries{
Style: chart.Style{
- StrokeColor: chart.ColorBlue,
- FillColor: chart.ColorAlternateBlue,
+ StrokeColor: chart.ColorBlue,
+ FillColor: chart.ColorAlternateBlue,
},
XValues: xvalues,
YValues: yvalues,
@@ -165,18 +165,18 @@ func GraphOpts(confs map[string]*Conf, bookname string, xaxis string, guidelines
annotations = append(annotations, chart.Value2{Label: fmt.Sprintf("%.0f", highconf), XValue: xvalues[len(xvalues)-1], YValue: highconf})
graph := chart.Chart{
- Title: bookname,
- Width: 3840,
- Height: 2160,
+ Title: bookname,
+ Width: 3840,
+ Height: 2160,
XAxis: chart.XAxis{
- Name: xaxis,
+ Name: xaxis,
Range: &chart.ContinuousRange{
Min: 0.0,
},
Ticks: ticks,
},
YAxis: chart.YAxis{
- Name: "Confidence",
+ Name: "Confidence",
Range: &chart.ContinuousRange{
Min: 0.0,
Max: 100.0,