Class DateScale Extends LinearScale
(Defined in: jpgraph_date.php : 49)
 
 DateScale  LinearScale 
 AdjustForDST() 
 SetDateAlign() 
 SetDateFormat() 
 SetTimeAlign() 
 SetAutoMax() 
 SetAutoMin() 
 SetAutoTicks() 
 SetGrace() 
 

Class usage and Overview
Module used to create a date/time X-axis scale

 


Class Methods

 

DateScale ::
AdjustForDST($aFlg)

ArgumentDefaultDescription
$aFlg true No description available

Description:
No description available.

 

DateScale ::
SetDateAlign($aStartAlign, $aEndAlign)
Specify start and end date alignment for the scale

ArgumentDefaultDescription
$aStartAlign  Start alignment
$aEndAlign false End alignment

Description:
Specify start and end date alignment for the scale Possible values are
  1. Alignment on a day basis
  2. Alignment on a monthly basis
  3. Alignment on a yearly basis
 
 
See also:

Example:

$graph->xaxis->scale->SetDateAlign(DAYADJ_1);

 

DateScale ::
SetDateFormat($aFormat)
// Overrides the automatic determined date format. Must be a valid date() format string

ArgumentDefaultDescription
$aFormat  No description available

Description:
No description available.

 

DateScale ::
SetTimeAlign($aStartAlign, $aEndAlign)
Specify start and end date alignment for the scale

ArgumentDefaultDescription
$aStartAlign  Start time alignment
$aEndAlign false End time alignment

Description:
Specify the start and end alignment with the time granularity. For date granularity see SetDateAlign(). Note that only one of SetDateAlign() and SetTimeAlign() can be used. For start and end alignment the following values are valid
  1. Alignment on seconds
  2. Alignment on minutes
  3. Alignment on hours
 
 
See also:

Example:

$graph->xaxis->scale->SetTimeAlign(MINADJ_15);