2019-08-29 21:41:21 +00:00
ReportChart
===
2018-12-22 11:46:10 +00:00
Component that renders the chart in reports.
2019-08-29 21:41:21 +00:00
## Usage
2018-12-22 11:46:10 +00:00
2019-08-29 21:41:21 +00:00
```jsx
```
2018-12-22 11:46:10 +00:00
2019-08-29 21:41:21 +00:00
### Props
2018-12-22 11:46:10 +00:00
2019-08-29 21:41:21 +00:00
Name | Type | Default | Description
--- | --- | --- | ---
`filters` | Array | ``null`` | Filters available for that report
`isRequesting` | Boolean | ``false`` | Whether there is an API call running
`itemsLabel` | String | ``null`` | Label describing the legend items
`limitProperties` | Array | ``null`` | Allows specifying properties different from the `endpoint` that will be used to limit the items when there is an active search
`mode` | String | ``null`` | `items-comparison` (default) or `time-comparison` , this is used to generate correct ARIA properties
`path` | String | ``null`` | (required) Current path
`primaryData` | Object | ``{
2019-02-14 17:24:02 +00:00
data: {
intervals: [],
},
isError: false,
isRequesting: false,
2019-08-29 21:41:21 +00:00
}`` | Primary data to display in the chart
`query` | Object | ``null`` | (required) The query string represented in object form
`secondaryData` | Object | ``{
2019-02-14 17:24:02 +00:00
data: {
intervals: [],
},
isError: false,
isRequesting: false,
2019-08-29 21:41:21 +00:00
}`` | Secondary data to display in the chart
`selectedChart` | 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.
2019-08-29 21:41:21 +00:00
- type: One of: 'average', 'number', 'currency' | ``null`` | (required) Properties of the selected chart