diff options
author | Nick White <git@njw.name> | 2019-09-27 16:25:17 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2019-09-27 16:25:17 +0100 |
commit | 38b5d16b974743eeb3a09e42c9a9dd69cfbd2369 (patch) | |
tree | c2a4fa21634278c7db0b2ffed65d8763e94f24d4 /bookpipeline | |
parent | 9992f681dd02c3bf2ea97a74ddb2f33eb7ee5c51 (diff) |
Update usage of go-chart to correspond to latest version of library
Diffstat (limited to 'bookpipeline')
-rw-r--r-- | bookpipeline/graph.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/bookpipeline/graph.go b/bookpipeline/graph.go index 42927b8..874ac50 100644 --- a/bookpipeline/graph.go +++ b/bookpipeline/graph.go @@ -35,7 +35,6 @@ func createLine(xvalues []float64, y float64, c drawing.Color) chart.ContinuousS XValues: xvalues, YValues: yvalues, Style: chart.Style{ - Show: true, StrokeColor: c, }, } @@ -100,7 +99,6 @@ func Graph(confs map[string]*Conf, bookname string, w io.Writer) error { } minSeries := &chart.ContinuousSeries{ Style: chart.Style{ - Show: true, StrokeColor: chart.ColorAlternateGray, StrokeDashArray: []float64{5.0, 5.0}, }, @@ -123,13 +121,10 @@ func Graph(confs map[string]*Conf, bookname string, w io.Writer) error { graph := chart.Chart{ Title: bookname, - TitleStyle: chart.StyleShow(), Width: 3840, Height: 2160, XAxis: chart.XAxis{ Name: "Page number", - NameStyle: chart.StyleShow(), - Style: chart.StyleShow(), Range: &chart.ContinuousRange{ Min: 0.0, }, @@ -137,8 +132,6 @@ func Graph(confs map[string]*Conf, bookname string, w io.Writer) error { }, YAxis: chart.YAxis{ Name: "Confidence", - NameStyle: chart.StyleShow(), - Style: chart.StyleShow(), Range: &chart.ContinuousRange{ Min: 0.0, Max: 100.0, |