fixing example
This commit is contained in:
parent
32dd907bf8
commit
630885bd27
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
|
||||||
|
|
||||||
// note we create a SimpleMovingAverage series by assignin the inner series.
|
// note we create a SimpleMovingAverage series by assignin the inner series.
|
||||||
// we need to use a reference because `.Render()` needs to modify state within the series.
|
// we need to use a reference because `.Render()` needs to modify state within the series.
|
||||||
smaSeries := &chart.SimpleMovingAverageSeries{
|
smaSeries := &chart.SMASeries{
|
||||||
InnerSeries: mainSeries,
|
InnerSeries: mainSeries,
|
||||||
} // we can optionally set the `WindowSize` property which alters how the moving average is calculated.
|
} // we can optionally set the `WindowSize` property which alters how the moving average is calculated.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue