# Class: ChartQuery

## tibco.objectapi.ec.base.ChartQuery

#### new ChartQuery()

A Chart Query. Chart Queries are aggregating queries to one of the Event Collector tables. Instead of returning the actual data in the table, it is categorised and grouped, and some form of aggregation done to the returned data, such as COUNT. Constructs a new ChartQuery.

The following features are supported:

- `Group`
- `Category`

### Extends

- tibco.objectapi.ec.base.BaseChartQuery

### Members

#### area :tibco.objectapi.ec.base.ChartArea

This property holds the value of the 'Area' attribute.

##### Type:

- tibco.objectapi.ec.base.ChartArea

Inherited From:
  - tibco.objectapi.ec.base.BaseChartQuery#area

#### category :tibco.objectapi.ec.base.ChartCategory

This property holds the value of the 'Category' containment reference.

##### Type:

- tibco.objectapi.ec.base.ChartCategory

#### filter :string

The filter is an ECQL compliant filter string used to restrict the results returned by the chart This property holds the value of the 'Filter' attribute.

##### Type:

- string

Inherited From:
  - tibco.objectapi.ec.base.BaseChartQuery#filter

#### filterAttributes :tibco.objectapi.ec.base.FilterAttributes

This property holds the value of the 'Filter Attributes' containment reference.

##### Type:

- tibco.objectapi.ec.base.FilterAttributes

Inherited From:
  - tibco.objectapi.ec.base.BaseChartQuery#filterAttributes

#### group :string

A grouping to use for this Chart Query. Groups cause multiple datasets to be returned by a chart query, instead of just one. Typically this is used to further group the data after the category This property holds the value of the 'Group' attribute.

##### Type:

- string