title: Google Charts trendline y-intercept
body: <p>I've been trying to force a trendline through 0,0 for my scatter graph, but I can't seem to find a way to do this.</p>
  
  <p>From the docs here, they don't give any information on it: <a href="https://developers.google.com/chart/interactive/docs/gallery/trendlines" rel="nofollow noreferrer">https://developers.google.com/chart/interactive/docs/gallery/trendlines</a>
  But, I know there are lots of undocumented stuff in charts.</p>
  
  <p>This is an example of what i am trying to do within Google charts(Done within excel)
  <a href="https://i.stack.imgur.com/m0Ov0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m0Ov0.png" alt="enter image description here"></a>
  The red dotted liner is the trendline, on the left is the default liniear regression that Google charts can give, but in many situations you would want to force a Y-intercept, in this example its forced to be at 0</p>