query
| bindingInfo.xFields and bindingInfo.yFields to specify the fields to display in the Chart. |
Specifies the data block to be used by the Chart component. The available data blocks appear at the top of the Toolbox panel in Visual Composer.

Example
Chart1.query = "All Sales";
Chart1.bindingInfo.xFields = [["Employee",Chart.STRING]];
Chart1.bindingInfo.yFields = [["Total",Chart.NUMBER]];

|
Either syntax below can be used in component script:
For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required. |