I’m curious if anyone has solved the puzzle of creating a trendline for their line charts yet? I’m a frequent user of line charts for burndowns in project tracking, but the most important part of them is the trendline / average velocity line - I’ve been puzzling over it for a bit tonight, but my brain is to fried to think in terms of derivatives AND coda tables, so I’m throwing this one to the community gods
This question has come up a few times through various channels, so I put together a quick doc to show how you can create a trend line.
Here’s the formula used in the example doc. (thisTable.[Tasks Left].Max() / (thisTable.Date.Max().ToDate() - thisTable.Date.Min().ToDate())) * (thisTable.Date.Max().ToDate() - thisRow.Date.ToDate())
Thanks for the input on this - I greatly appreciate it.
Unfortunately, your trend line is incorrect - You can tell at a glance of your line chart, as the trend line is supposed to be the moving average of the data set, and therefore cut straight through the “middle” of your curve, like this:
Thanks a lot sharing this material, including math explanation
Recently I received a similar question and to be honest, I felt “how I am going to solve this”
I just wanted to post that this trendline component has a massive flaw - the purpose of a trendline is to predict the future, however, I cannot for the life of me figure out a way to create this trendline for data with no X axis entries.
Ultimately, this is far past my expertise - can anyone else hop in to help?
Thanks for posting this solution. I tried copying the doc and a formula isn’t showing up, it’s just data. Would you be able to double check and see that the formula is there or post it here? Curious what you used