March 11, 2010, 04:45:36 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Remember if you wish to share a pic or a story, with just a selected few, use the new extended profile with custom buddy list http://www.fibsboard.com/announcements/new-ultimate-profile-a-biopicdocumentsounds-area-that-can-only-be-seen-by-b/
 
  Home   Forum   Chat links PLAY NOW! Help Search Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Statistics graph in JavaFibs2001  (Read 1063 times)
0 Members and 1 Guest are viewing this topic.
talkinaway
Newbie
*
Offline Offline

Posts: 1


« on: January 03, 2009, 04:57:27 PM »

There's a little change to JavaFIBS that I think could make the statistiscs graph look nicer.  From the graph I posted, the range is from 1500-1600, where it really only needs to go up to perhaps 1550. 

I'm not a programmer, but I am a math geek, and I'd suggest taking 5% of the range of the data - that is, (DataMax-DataMin)/20, and subtracting this number from min and adding it to max to get a GraphMin and a GraphMax.  You can then round GraphMin down to a "nice" number (nearest 10 would probably look nice), and round GraphMax UP to the nearest number.  Just a little suggestion to make the graph less "smooshy" (technical term) and fill up the whole space. 

In my example, it looks like my low point is 1502 and my high point is 1533.  So the range is 31, and I'd want a buffer of 31/20 = 1.55.  So I'd want it to go down to 1502-1.55 = 1501.45 and up to 1533 + 1.55 = 1534.55.  Rounding the first number down and the second number up, I'd show the graph from 1500 to 1540.

The specific is just one suggestion of how to implement it automatically - again, not a programmer, but the math geek in me says this algorithm should make it 'look nice' 

talkinaway
Logged
inim
This space is available for rent by advertisers.
Fibsboarder plus
****
Offline Offline

Posts: 196


This space is available for rent by advertisers


« Reply #1 on: January 03, 2009, 06:07:36 PM »

Useful suggestion which can be done with moderate effort. It becomes a bit more tricky to calculate the label positions for the numbers, which actually is harder than calculating the graph dimensions. Estimated effort about half a person day.
Logged

This space is available for rent by advertisers. Call 0900-INIMITE today, and see your sales skyrocketing in no time! New customers receive free Vl@9rĂ¥ and a penis enlargement set as a bonus! We support banners, flash banners, and scrollers. Discrete handling by our HQ on the Dutch Antilles.
FIBS Board backgammon forum
« Reply #1 on: January 03, 2009, 06:07:36 PM »

 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

the debate over the future of UK and international drug policy

Please Donate just a wee amount by clicking here or we will have to stick more bloody small ads here again...thx :) Fresh Air
Terms & Conditions | Privacy policy
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | Sitemap Cornify
Valid XHTML 1.0! Valid CSS!
Page created in 1.204 seconds with 32 queries. (Pretty URLs adds 0.019s, 3q)