2018-12-22 11:46:10 +00:00
|
|
|
`ReportChart` (component)
|
|
|
|
=========================
|
|
|
|
|
|
|
|
Component that renders the chart in reports.
|
|
|
|
|
|
|
|
Props
|
|
|
|
-----
|
|
|
|
|
|
|
|
### `filters`
|
|
|
|
|
|
|
|
- Type: Array
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
Filters available for that report.
|
|
|
|
|
2019-02-28 00:43:39 +00:00
|
|
|
### `isRequesting`
|
|
|
|
|
|
|
|
- Type: Boolean
|
|
|
|
- Default: `false`
|
|
|
|
|
|
|
|
Whether there is an API call running.
|
|
|
|
|
2018-12-22 11:46:10 +00:00
|
|
|
### `itemsLabel`
|
|
|
|
|
|
|
|
- Type: String
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
Label describing the legend items.
|
|
|
|
|
2019-03-28 18:30:57 +00:00
|
|
|
### `limitProperties`
|
2019-02-28 00:43:39 +00:00
|
|
|
|
2019-03-28 18:30:57 +00:00
|
|
|
- Type: Array
|
2019-02-28 00:43:39 +00:00
|
|
|
- Default: null
|
|
|
|
|
2019-03-28 18:30:57 +00:00
|
|
|
Allows specifying properties different from the `endpoint` that will be used
|
2019-02-28 00:43:39 +00:00
|
|
|
to limit the items when there is an active search.
|
|
|
|
|
2018-12-28 19:42:20 +00:00
|
|
|
### `mode`
|
|
|
|
|
|
|
|
- Type: String
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
`items-comparison` (default) or `time-comparison`, this is used to generate correct
|
|
|
|
ARIA properties.
|
|
|
|
|
2018-12-22 11:46:10 +00:00
|
|
|
### `path`
|
|
|
|
|
|
|
|
- **Required**
|
|
|
|
- Type: String
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
Current path
|
|
|
|
|
|
|
|
### `primaryData`
|
|
|
|
|
|
|
|
- Type: Object
|
2019-02-14 17:24:02 +00:00
|
|
|
- Default: `{
|
|
|
|
data: {
|
|
|
|
intervals: [],
|
|
|
|
},
|
|
|
|
isError: false,
|
|
|
|
isRequesting: false,
|
|
|
|
}`
|
2018-12-22 11:46:10 +00:00
|
|
|
|
|
|
|
Primary data to display in the chart.
|
|
|
|
|
|
|
|
### `query`
|
|
|
|
|
|
|
|
- **Required**
|
|
|
|
- Type: Object
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
The query string represented in object form.
|
|
|
|
|
|
|
|
### `secondaryData`
|
|
|
|
|
|
|
|
- Type: Object
|
2019-02-14 17:24:02 +00:00
|
|
|
- Default: `{
|
|
|
|
data: {
|
|
|
|
intervals: [],
|
|
|
|
},
|
|
|
|
isError: false,
|
|
|
|
isRequesting: false,
|
|
|
|
}`
|
2018-12-22 11:46:10 +00:00
|
|
|
|
|
|
|
Secondary data to display in the chart.
|
|
|
|
|
|
|
|
### `selectedChart`
|
|
|
|
|
|
|
|
- **Required**
|
|
|
|
- Type: Object
|
2019-06-12 22:55:19 +00:00
|
|
|
- key: String - Key of the selected chart.
|
|
|
|
- label: String - Chart label.
|
|
|
|
- order: One of: 'asc', 'desc'
|
|
|
|
- orderby: String - Order by query argument.
|
|
|
|
- type: One of: 'average', 'number', 'currency'
|
2018-12-22 11:46:10 +00:00
|
|
|
- Default: null
|
|
|
|
|
|
|
|
Properties of the selected chart.
|
|
|
|
|