From 3679eaaa31ff1b4278398d22a88491996e8c18d7 Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 11 Sep 2019 16:49:51 +0100 Subject: Increase size of graph to 4k --- bookpipeline/graph.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bookpipeline') diff --git a/bookpipeline/graph.go b/bookpipeline/graph.go index e347ba4..541f04f 100644 --- a/bookpipeline/graph.go +++ b/bookpipeline/graph.go @@ -12,7 +12,7 @@ import ( "github.com/wcharczuk/go-chart/drawing" ) -const maxticks = 20 +const maxticks = 40 const goodCutoff = 70 const mediumCutoff = 65 const badCutoff = 60 @@ -28,7 +28,7 @@ type GraphConf struct { func createLine(xvalues []float64, y float64, c drawing.Color) chart.ContinuousSeries { var yvalues []float64 - for _ = range xvalues { + for range xvalues { yvalues = append(yvalues, y) } return chart.ContinuousSeries{ @@ -95,7 +95,7 @@ func Graph(confs map[string]*Conf, bookname string, w io.Writer) error { lowconf := graphconf[int(len(graphconf)/10)].Conf highconf := graphconf[int((len(graphconf)/10)*9)].Conf yvalues = []float64{} - for _ = range graphconf { + for range graphconf { yvalues = append(yvalues, lowconf) } minSeries := &chart.ContinuousSeries{ @@ -124,8 +124,8 @@ func Graph(confs map[string]*Conf, bookname string, w io.Writer) error { graph := chart.Chart{ Title: bookname, TitleStyle: chart.StyleShow(), - Width: 1920, - Height: 1080, + Width: 3840, + Height: 2160, XAxis: chart.XAxis{ Name: "Page number", NameStyle: chart.StyleShow(), -- cgit v1.2.1-24-ge1ad