PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
dates on x axis

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Images
View previous topic :: View next topic  
Author Message
davidmaxwaterman



Joined: 12 Oct 2007
Posts: 3

PostPosted: Mon Oct 15, 2007 11:05 am    Post subject: dates on x axis Reply with quote

Hi,

I'm trying to use image_graph and am having trouble getting my dates to appear like on this example, ie vertical and not drawn on top of the plot.

I'm getting more like this.

Which part of the example code moves the x axis values down so they're not plonked on top of the plot?

Max.
Back to top
View user's profile Send private message
tiffbrink



Joined: 09 Apr 2009
Posts: 4
Location: Dallas, TX

PostPosted: Thu Apr 30, 2009 5:30 pm    Post subject: Re: dates on xaxis Reply with quote

Maybe we could help each other out?

My axis shows up horizontal automatically using:
$AxisX =& $Plotarea->getAxis(IMAGE_GRAPH_AXIS_X);
$AxisX->setTtile('Day');

If I want my data to show up vertical, I have to specifically state it:
$AxisY->setTitle('Number', 'vertical');

Here's my problem...If I convert my dates from unix timestamp to human readable, then they don't show on the graph anymore. How did you get your graph to display human readable dates on the x-axis? Maybe we could swap code???

tifischer at gmail dot com
_________________
Chaos Theory is a new theory invented by scientists panicked by the thought that the public were beginning to understand the old ones."
Mike Barfield
Back to top
View user's profile Send private message
davidmaxwaterman



Joined: 12 Oct 2007
Posts: 3

PostPosted: Thu Apr 30, 2009 10:30 pm    Post subject: Re: dates on xaxis Reply with quote

tiffbrink wrote:
Maybe we could help each other out?

My axis shows up horizontal automatically using:
$AxisX =& $Plotarea->getAxis(IMAGE_GRAPH_AXIS_X);
$AxisX->setTtile('Day');

If I want my data to show up vertical, I have to specifically state it:
$AxisY->setTitle('Number', 'vertical');

Here's my problem...If I convert my dates from unix timestamp to human readable, then they don't show on the graph anymore. How did you get your graph to display human readable dates on the x-axis? Maybe we could swap code???

tifischer at gmail dot com


Sorry, but it's been too long since I had to deal with this - it's years since I posted the question - and I've forgotten. If I come across the code, I'll let you know.
Back to top
View user's profile Send private message
tiffbrink



Joined: 09 Apr 2009
Posts: 4
Location: Dallas, TX

PostPosted: Thu Apr 30, 2009 10:45 pm    Post subject: Yeah... Reply with quote

I didn't realize how old that post was till after I posted. So I opened a new post and then figured it out on my own Very Happy
_________________
Chaos Theory is a new theory invented by scientists panicked by the thought that the public were beginning to understand the old ones."
Mike Barfield
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Images All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement