diff options
author | Nick White <git@njw.name> | 2020-04-07 12:02:54 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2020-04-07 12:02:54 +0100 |
commit | af63449be98f1964b67981b2aedda0d2ea70fe6d (patch) | |
tree | 92e415fceb313113107fbe530b584b231940c901 /graph.go | |
parent | 22200755d471e77d20f490ffe01ede884b5acfcb (diff) |
gofmt
Diffstat (limited to 'graph.go')
-rw-r--r-- | graph.go | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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, |