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-02-28 00:43:39 +00:00
|
|
|
### `limitProperty`
|
|
|
|
|
|
|
|
- Type: String
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
Allows specifying a property different from the `endpoint` that will be used
|
|
|
|
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
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
Properties of the selected chart.
|
|
|
|
|