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.
|
|
|
|
|
|
|
|
### `itemsLabel`
|
|
|
|
|
|
|
|
- Type: String
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
Label describing the legend items.
|
|
|
|
|
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.
|
|
|
|
|