From 38b5d16b974743eeb3a09e42c9a9dd69cfbd2369 Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 27 Sep 2019 16:25:17 +0100 Subject: Update usage of go-chart to correspond to latest version of library --- bookpipeline/graph.go | 7 ------- 1 file changed, 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, -- cgit v1.2.1-24-ge1ad