Reply to Re: JPGraph - setting Y axis range and calculating left margin width?

Your name:

Reply:


Posted by johnbkim on 02/24/07 01:46

> 2. I'm setting the X axis scale to go from $t0 to $t1, but why isn't
> it ending right on the hour?
> 3. How do I set the X axis tick intervals to 30 or 60 minute
> intervals? (I tried $graph->xaxis->SetTickLabelInterval()).

I stumbled upon the answer:
// set major ticks to 60 mins, minor to 15 mins.
$graph->xaxis->ticks->Set( 60*60, 60*15 );

This also fixed the problem of X axis scale not going all the way to
$t1. Not sure why, but it works now after I added the above line.

j.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация