pChart 2.x forum http://wiki.pchart.net/forum/ |
|
datetime at regular intervals http://wiki.pchart.net/forum/viewtopic.php?f=1&t=66 |
Page 1 of 1 |
Author: | sidkdbl07 [ Sun Jan 09, 2011 11:30 pm ] |
Post subject: | datetime at regular intervals |
I have a datetime series on the X axis with about 500 points that range over 4 months Is there a good way to have the X labels be marked at the first day of every month... e.g) 09/01/2010, 10/01/2010, 11/01/2010 I thought of using the LabelSkip parameter but one month of longer or shorter than the next. Any ideas? |
Author: | jean-damien [ Mon Jan 10, 2011 2:26 pm ] |
Post subject: | Re: datetime at regular intervals |
Hi, You can use the LabelingMethod parameter of the drawScale() function. If you set it to LABELING_DIFFERENT it will only prints labels that are different from the last printed one. You'll then have to format your X label serie like : Code: $MyData->addPoints(array("09/01/2010","09/01/2010","09/01/2010","10/01/2010","10/01/2010","10/01/2010"),"Labels"); ..or event better, use the TimeStamp and use the setXAxisDisplay() function to format the output. JD. |
Author: | michaelc [ Wed Dec 07, 2011 11:15 am ] |
Post subject: | Re: datetime at regular intervals |
Hi jean-damien, I am using Code: drawScatterScale() Thanks in advance! Cheers, Michael |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |