Methods

height()

height() : mixed

Returns

mixed

setColors()

setColors(array<mixed,string>  $colors) : \Charcoal\Admin\Widget\Graph\GraphWidgetInterface

Parameters

array<mixed,string> $colors

The graph colors (hexadecimal).

Returns

\Charcoal\Admin\Widget\Graph\GraphWidgetInterface

Chainable

colors()

colors() : array<mixed,string>

Returns

array<mixed,string>

defaultColors()

defaultColors() : array<mixed,string>

Returns

array<mixed,string>

categories()

categories() : array

Returns

array —

Categories structure.

categoriesJson()

categoriesJson() : string

Returns

string —

JSONified categories structure.

series()

series() : array

Returns

array —

Series structure.

seriesJson()

seriesJson() : string

Returns

string —

JSONified series structure.

groupingType()

groupingType() : string

Returns

string

dateFormat()

dateFormat() : string

Returns

string

sqlDateFormat()

sqlDateFormat() : string

Returns

string

setStartDate()

setStartDate(string|\Charcoal\Admin\Widget\Graph\DateTimeInterface  $ts) : \Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface

Parameters

string|\Charcoal\Admin\Widget\Graph\DateTimeInterface $ts

The start date.

Returns

\Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface

Chainable

startDate()

startDate() : \Charcoal\Admin\Widget\Graph\DateTimeInterface

Returns

\Charcoal\Admin\Widget\Graph\DateTimeInterface

setEndDate()

setEndDate(string|\Charcoal\Admin\Widget\Graph\DateTimeInterface  $ts) : \Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface

Parameters

string|\Charcoal\Admin\Widget\Graph\DateTimeInterface $ts

The end date.

Returns

\Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface

Chainable

endDate()

endDate() : \Charcoal\Admin\Widget\Graph\DateTimeInterface

Returns

\Charcoal\Admin\Widget\Graph\DateTimeInterface

setDateInterval()

setDateInterval(string|\Charcoal\Admin\Widget\Graph\DateInterval  $interval) : \Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface

Parameters

string|\Charcoal\Admin\Widget\Graph\DateInterval $interval

The interval between each "category".

Returns

\Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface

Chainable

dateInterval()

dateInterval() : \Charcoal\Admin\Widget\Graph\DateInterval

Returns

\Charcoal\Admin\Widget\Graph\DateInterval