CLASS DateScale EXTENDS LinearScale
(Defined in: jpgraph_date.php : 49)
 DateScale  LinearScale  
 AdjustForDST() 
 SetDateAlign() 
 SetDateFormat() 
 SetTimeAlign() 
 
 

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

 


Class Methods

 

 

function AdjustForDST($aFlg)

ArgumentDefaultDescription
$aFlg true No description available

Description
No description available.

 

 

function 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
DateScale::SetTimeAlign

Example

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

 

 

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

ArgumentDefaultDescription
$aFormat  No description available

Description
No description available.

 

 

function 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
DateScale::SetDateAlign

Example

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