Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you create trend line in grafana charts

I am using grafana with opentsdb. I can create charts with avg, max, min etc but I dont see how a trend can be added. Is it possible to put trend line on charts in grafana?

like image 509
user1471980 Avatar asked Oct 17 '14 13:10

user1471980


People also ask

How do you add a trendline in Microstrategy?

Right-click the numeric axis to use as a basis for the trend line. If the axis contains more than one metric, choose the metric name. Then, choose Enable Trendline. Once you enable a trend line, you can edit it.

How do you add multiple trend lines?

Click the right arrow. Select the type of trendline you want to add. In case you want to have more options or to format the trendline right away, click More Options. Excel will ask you for which data series you want to add another trendline.

What is a trend line in a graph?

A trendline is a line superimposed on a chart revealing the overall direction of the data. Google Charts can automatically generate trendlines for Scatter Charts, Bar Charts, Column Charts, and Line Charts. Google Charts supports three types of trendlines: linear, polynomial, and exponential.


1 Answers

I found a way to do this. Use the movingAverage function, and set the window size to something really large, like in the thousands. The higher you set it, the smoother the trendline gets.

like image 172
Steve Avatar answered Sep 18 '22 18:09

Steve