September 03, 2010, 12:06:42 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: want some cool sounds while you browse the boards.... see the new collapsable web radio section on the LHS, below birthdays, on the Front page
 
  Home   Forum   Chat links PLAY NOW! Help Search Calendar Login Register   **
Pages: [1]   Go Down
  Print  
Author Topic: Statistics graph in JavaFibs2001  (Read 1338 times)
0 Members and 1 Guest are viewing this topic.
talkinaway
Newbie
*
Offline Offline

Posts: 1


« on: January 03, 2009, 05: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: 199


This space is available for rent by advertisers


« Reply #1 on: January 03, 2009, 07: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, 07:07:36 PM »

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

TinyPortal 1.0 beta 5-1

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 | Sitemap Cornify Valid XHTML 1.0! Valid CSS!
Page created in 0.427 seconds with 34 queries. (Pretty URLs adds 0.017s, 3q)