summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-09-11 16:49:51 +0100
committerNick White <git@njw.name>2019-09-11 16:49:51 +0100
commit3679eaaa31ff1b4278398d22a88491996e8c18d7 (patch)
treeeacc73ff1a58a75128bd69bb8522f4252c7dffb5
parenteee54245e560bce314647bbe441da94d19bf8278 (diff)
Increase size of graph to 4k
-rw-r--r--bookpipeline/graph.go10
1 files changed, 5 insertions, 5 deletions
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(),