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.

dataBlocks

Type

String

Example

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

bindingInfoXFields

Either syntax below can be used in component script:

query              // unqualified
Calendar1.query    // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.