I'm trying to display some data points using google graphs, but unfortunately there is a limit of about 2000 characters to the length of the url I can use, which translates to roughly 200 data points limit I can use to display the graph. I have about 800 data points and growing, so I need to cut them down to 200 for the graph. Right now I'm just cutting out X=(800/200)-1 points then skipping one (and repeat) to get to 200.
However most data points are located at the beginning of the array since the points' positions on the graphs are expanding somewhat exponentially (about 1.2 exponent). Also the most important points are the most recent ones (at the end of the array). So I'd need a way to reduce the points array in such a way as to leave most points at the end of the array, and remove most (but not all) towards the beginning.
This would be used each time the graph is made so it would have to be deterministic (i.e. no random involved). If someone could point me in the right direction I'd very much appreciate it.