tweaking example.
This commit is contained in:
parent
2e41dfd5db
commit
9c53de511a
2 changed files with 0 additions and 20 deletions
|
@ -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 |
Loading…
Reference in a new issue