You've got to put every point into an array
Then use RSORT Z,X,Y,anyOtherVariables
Then draw everything
You can take a look at my 3D thing if you'd like, its almost exactly what your doing
So if you typed in the data manually, then it'll give strategy to the graphs, of course that is A LOT of data, if real artificial intelligence existed then it would be able to generate this data on the fly, that aint happenin any time soon
I'd like to see where your stock thing goes
Good luck
Here's the thing though
Predicting what a graph will do in the future is useless and boring
What gives it strategy is all the links to other things, that are hidden to the user, it'll make more sense when I explain
Take a coat manufacturer for example, coats have a large negative link to weather, negative because when weather is high (hot), coat sales are low, and vice versa
Huh alright, that sounds pretty cool
Make the code library have everything, that way each application can be more compressed, but if I were you, i'd stick to a easy to understand naming system