PDA

View Full Version : Graphs.



gopher_yarrowzoo
12-03-2005, 09:02 AM
I've noticed that on the F@H and no doubt other stats pages, when you click the "NEXT" button it regen's both the graphs - surely it should only regen one of them at most..
might need a pos check..
if (pos==1)
{ draw_graphs();
display_graphs();
}
else
{ display_graphs(); }
endif

Bok
12-03-2005, 09:17 AM
It's because the graphs are dynamically calculated based on the data the current sql statement retrieves, so they are current for that page.

I did change it once to remain constant, but people complained that they didn't see they're names on the charts...if they were on page 2 for instance..

I then thought of it almost like different 'leagues'.

/shrug

Bok