 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
davidmaxwaterman
Joined: 12 Oct 2007 Posts: 3
|
Posted: Mon Oct 15, 2007 11:05 am Post subject: dates on x axis |
|
|
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 |
|
 |
tiffbrink
Joined: 09 Apr 2009 Posts: 4 Location: Dallas, TX
|
Posted: Thu Apr 30, 2009 5:30 pm Post subject: Re: dates on xaxis |
|
|
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 |
|
 |
davidmaxwaterman
Joined: 12 Oct 2007 Posts: 3
|
Posted: Thu Apr 30, 2009 10:30 pm Post subject: Re: dates on xaxis |
|
|
| 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 |
|
 |
tiffbrink
Joined: 09 Apr 2009 Posts: 4 Location: Dallas, TX
|
Posted: Thu Apr 30, 2009 10:45 pm Post subject: Yeah... |
|
|
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  _________________ 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 |
|
 |
|
|
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
|
|