Class DateScaleUtils
(Defined in: jpgraph_utils.inc.php : 69)

DateScaleUtils

doDaily()
doMonthly()
doWeekly()
doYearly()
GetAutoTicks()
GetTicks()
GetTicksFromMinMax()
UseWeekFormat()

Class usage and Overview

Class Methods

DateScaleUtils ::
doDaily($aType, $aMinor)

Argument | Default | Description
--- | --- | ---
$aType |  | No description available
$aMinor | false | No description available

Description:
No description available.

DateScaleUtils ::
doMonthly($aType, $aMinor)
// The assumption is that the weeks start on Monday. If the first day// is later in the week then the first week tick has to be on the following// week.

Argument | Default | Description
--- | --- | ---
$aType |  | No description available
$aMinor | false | No description available

Description:
No description available.

DateScaleUtils ::
doWeekly($aType, $aMinor)

Argument | Default | Description
--- | --- | ---
$aType |  | No description available
$aMinor | false | No description available

Description:
No description available.

DateScaleUtils ::
doYearly($aType, $aMinor)

Argument | Default | Description
--- | --- | ---
$aType |  | No description available
$aMinor | false | No description available

Description:
No description available.

DateScaleUtils ::
GetAutoTicks($aMin, $aMax, $aMaxTicks, $aMinor)

Argument | Default | Description
--- | --- | ---
$aMin |  | No description available
$aMax |  | No description available
$aMaxTicks | 10 | No description available
$aMinor | false | No description available

Description:
No description available.

DateScaleUtils ::
GetTicks($aData, $aType, $aMinor, $aEndPoints)
// For the case where all dates are within the same month// we want to make sure we have at least two ticks on the scale// since the scale want work properly otherwise

Argument | Default | Description
--- | --- | ---
$aData |  | No description available
$aType | 1 | No description available
$aMinor | false | No description available
$aEndPoints | false | No description available

Description:
No description available.

DateScaleUtils ::
GetTicksFromMinMax($aMin, $aMax, $aType, $aMinor, $aEndPoints)
// Decision table for suitable scales// First value: Main decision point// Second value: Array of formatting depending on divisor for wanted max number of ticks. ,..

Argument | Default | Description
--- | --- | ---
$aMin |  | No description available
$aMax |  | No description available
$aType |  | No description available
$aMinor | false | No description available
$aEndPoints | false | No description available

Description:
No description available.

DateScaleUtils ::
UseWeekFormat($aFlg)
//=============================================================================// CLASS DateScaleUtils// Description: Help to create a manual date scale//=============================================================================

Argument | Default | Description
--- | --- | ---
$aFlg |  | No description available

Description:
No description available.