For Dashboard Designers Reference ChartJsView
Friday, March 15, 2019 10:01 PMChartView
Labels: :IA_Function:IA_ChartJsView
Inherits from: Function and View
The ChartJsView Function renders a ChartJs with data.
Function parameters
Key | Description | Default value | Possible values | |
---|---|---|---|---|
chartType |
The type of chart | One of the ChartJs types | ||
data |
Data to use in the chart | Array of objects | ||
options |
Options to customize the charts. | ChartJs options. |
Outgoing triggers
Type: click
Occurrence: When the user selects a selectable item in the chart (depending on the chart type).
Additional event properties (besides the inherited properties):
Key | Description | Possible values |
---|---|---|
data |
Row data of the clicked element. | object |
* Example click
data (for two datasets):
{
companyA: {x: 3, y: 5.6, label: 'Company A'},
companyB: {x: 3, y: 7.5, label: 'Company B'}
}