From fe8c6e4ba814988a753a72aaed7600a1a2d16e00 Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Thu, 14 Jul 2016 12:41:56 -0700 Subject: [PATCH] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 57cdd37..cda9798 100644 --- a/README.md +++ b/README.md @@ -175,6 +175,14 @@ graph := chart.Chart{ graph.Render(chart.PNG, buffer) ``` +# Moving Averages + +You can now also graph a moving average of a series using a special `MovingAverageSeries` that takes an `InnerSeries` as it's required argument. + + ![](https://raw.githubusercontent.com/wcharczuk/go-chart/master/images/goog_ltm_ma.png) + + There is a helper method, `GetLastValue` on the `MovingAverageSeries` to aid in creating a last value annotation for the series. + # Design Philosophy I wanted to make a charting library that used only native golang, that could be stood up on a server (i.e. it had built in fonts).