tweaking example.

This commit is contained in:
Will Charczuk 2016-08-11 20:43:38 -07:00
parent 2e41dfd5db
commit 9c53de511a
2 changed files with 0 additions and 20 deletions

View file

@ -49,24 +49,6 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
YValues: yvalues, YValues: yvalues,
} }
minSeries := &chart.MinSeries{
Style: chart.Style{
Show: true,
StrokeColor: chart.ColorAlternateGray,
StrokeDashArray: []float64{5.0, 5.0},
},
InnerSeries: mainSeries,
}
maxSeries := &chart.MaxSeries{
Style: chart.Style{
Show: true,
StrokeColor: chart.ColorAlternateGray,
StrokeDashArray: []float64{5.0, 5.0},
},
InnerSeries: mainSeries,
}
linreg := &chart.LinearRegressionSeries{ linreg := &chart.LinearRegressionSeries{
Name: "Linear Regression", Name: "Linear Regression",
Style: chart.Style{ Style: chart.Style{
@ -107,8 +89,6 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
}, },
Series: []chart.Series{ Series: []chart.Series{
mainSeries, mainSeries,
minSeries,
maxSeries,
linreg, linreg,
chart.LastValueAnnotation(linreg), chart.LastValueAnnotation(linreg),
sma, sma,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 120 KiB