ChartLabelOptions

class ChartLabelOptions
getIgnoreList()
property name
property type
property timestampRange

Activate automatic drill-down time range charts, when your label expression corresponds to a SQL DATETIME type. Set to “true” to activate

Type: bool
Default: “(unset)”
property autoDrill

Activate the _autoDrill_ feature, where the the user can drill down into the chart by using different label columns.

This requires the ChartLabelOptions::$drillPath option to be set.

Type: bool
Default: false
property timeUnit

A Calendar unit of time used for ranging and grouping values. Absolute Date/Time values will be converted into strings which match this time unit.

Allowed Values: “year”, “month”, “day”, “hour”, “minute”, “second”

Type: string
Default: “year”
property drillPath

The drill path to use while performing drill downs.

Type: array
Default: “(unset)”
property customTimeUnitPath

Use a different path of time units while performing drill downs. Only relavant when timestampRange is active

For example, if you want to show the “day” right after “month”, you can use set an option like this

array(‘timestampRange’ => array(‘month’, ‘day’))

Type: array
Default: “(unset)”
property fillEmpty

Setting this to true will display empty values in a time series chart.

Type: boolean
Default: true
property timeFormatString

The time format string

Options: “d” - short date - “11/6/2010”

TODO: Add the remaining options

Type: string
Default: “d”
property numberPrefix

Using this attribute, you could add prefix to all the numbers. For example, to represent all dollars figures, you could specify this attribute to ‘$’ to show like $40000, $50000.

Type: string
Default: “(unset)”
property numberSuffix

Using this attribute, you could add a suffix to all the numbers. For example, to represent all dollars figures, you could specify this attribute to ‘%’ to show like 33%, 53%.

Type: string
Default: “(unset)”
property formatNumber

If this is set to false, the number will not be formatted. It will be shown without commas or decimals.

Type: boolean
Default: true
property decimals

Number of decimal places all items in the chart will be rounded to

Type: int
Default: “(unset)”

Start building interactive, mobile-friendly Dashboards in PHP. See DemosDownload