ChartSeriesOptions

class ChartSeriesOptions
getIgnoreList()
property type
property displayType

The display type of the series. Possible options are:

  1. Column
  2. Line
  3. Bar
  4. Area
  5. Pie
Type: string
Default: “Column”
property condition

The condition that

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

A boolean flag to set to “true” if the series is to be measured against the second y axis

Type: boolean
Default: “(unset)”
property sort

Sort according to this series

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

The aggregation function. For a list of supported aggregation functions, see:

http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html [mysql] http://www.sqlite.org/lang_aggfunc.html [sqlite] http://msdn.microsoft.com/en-us/library/ms173454.aspx [SQL Server]

Type: string
Default: “SUM”
property color

The color of the series

Set a hexadecimal string like “A4C9F3”.

  • There should not be a “#” in the beginning of the string like in CSS.
  • You can also use a valid CSS Color Keyword
Type: string
Default: “(unset)”
property showValues
property pieChartLabelDisplay

How to display the pie chart labels?

Options: 1. “value” // Show value as a numeric value 2. “percentage” // Show value as a percentage of the total chart

Note: If showValues has been set to false, the values will not be shown

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

The name of the column

Type: string
Default: “”
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