What JavaScript code would I use to plot a trend line?
问题 Assuming that I have the following values that I'm going to plot on a Line chart (these are values and not coordinates - the coordinates are calculated by my software and are shown below): [4,4,3,2,5,5] How would I turn those values into a set of trendline values/coordinates? (BTW I don't really have any Maths expertise beyond school level - so no fancy Maths terminology please!). To add further details: These are a set of values that are spaced equally across a 500 pixel space (an HTML5