...
Prop name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data | Array | an array of objects that represents the data to be displayed in the graph. The minimal object structure must be as follows :
Example :
X labels will be based on With the previous example, the dates are used for X labels.
| |||||||||||||||
xDataKey | string | Name of the field in the data array object for X axis | |||||||||||||||
yDataKey | string | Name of the field in the data array object for Y axis | |||||||||||||||
maxHeight | number|string | Max height of the graph. Default is | |||||||||||||||
width | number|string | Width of the graph. Default is | |||||||||||||||
startIndex | number | Start index of the brush tool | |||||||||||||||
endIndex | number | End index of the brush tool | |||||||||||||||
brushStrokeColor | string | CSS color of the brush tool stroke. Default is | |||||||||||||||
barFillColor | string | CSS color of the chart bar. Default is | |||||||||||||||
xTickFormater | function<value>:string | A function that takes the X axis label value and returns a formatted value. Default is undefined. | |||||||||||||||
brushLabelFormatter | function<value>:string | A function that formats the brush label as you will. Default returns the current value | |||||||||||||||
onSelectChanged | function<startIndex, endIndex>:void | A function called when the user has changed the brush selection. |
Advanced search
You can decide which fields to display in the advanced search dropdown lists, and which labels to use. For that, please refer to Advanced search - Fixed values list for fields
Customizing colors and theme
...